Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:36:19+00:00 2026-06-08T12:36:19+00:00

With foreman, I’m trying to start my rails app using two .env files. One

  • 0

With foreman, I’m trying to start my rails app using two .env files.

One is the regular .env file, but then a second one has extra variables to load. I’m trying to use the method mentioned in this guide to keep config variables out of code: https://devcenter.heroku.com/articles/config-vars

Here is my Procfile:

web: bundle exec rails server thin -p $PORT --env $RACK_ENV,var.env

My problem is that foreman doesn’t seem to want to take the two arguments for –env, even though the docs say that it should be possible:

-e, –env

Specify an alternate environment file. You can specify more than one file by using: –env file1,file2.

When I try to run it with "foreman start," I get the error:

06:22:46 web.1  | You did not specify how you would like Rails to report deprecation notices for your development,var.env environment, please set config.active_support.deprecation to :log, :notify or :stderr at config/environments/development,var.env.rb

It just doesn’t seem to want to split "development,var.env" and process them separately. When I looked at the foreman code, it looks like it should just do a simple split on the comma, so I can’t tell if I’m doing something wrong or it’s a bug.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:36:20+00:00Added an answer on June 8, 2026 at 12:36 pm

    I didn’t use that feature yet but from the docs I would say your are trying to specify the command line parameter in the wrong place. Instead of adding it to the process in the Procfile you should add it to the foreman command itself:

    foreman start --env .env,.env.local
    

    That way the environment is set for all processes started by foreman.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A web app I am writing in JavaScript using node.js. I use Foreman, but
On my local machine I'm trying to start my rails app and delayed job
trying to get a project working on my debian vm but foreman refuses to
Followed all instructions. Get this error when running foreman start : C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/fo
I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm
I'm trying to deploy a simple app, getting started on Heroku/Cedar but it's imposible
When I run foreman I get the following: > foreman start 16:47:56 web.1 |
I'm trying to run thin start 2>&1 in a subprocess by running fork /
I am trying to encode a video from raw YUV to MPEG-2 using the
At the moment I am using one list to store one part of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.