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 8970349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:43:00+00:00 2026-06-15T17:43:00+00:00

I currently use supervisor to run my node.js app when developing locally. This has

  • 0

I currently use supervisor to run my node.js app when developing locally. This has been great, but I currently store all my configs in my .bash_profile, I want to move them to a .env file.

Is there a way to get the environment loading features of foreman with the file watching features of supervisor?

One option is to add it to my Procfile like this, but I suspect that will mess up Heroku.

`local: supervisor web.js`
  • 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-15T17:43:00+00:00Added an answer on June 15, 2026 at 5:43 pm

    This is the solution I put together and it works great.

    Install Rerun and Rb-fsevent.

    sudo gem install rerun rb-fsevent  
    

    Install Foreman if you have not already.

    sudo gem install foreman
    

    Put your environment variables in .env in the root of your project.

    Don’t forget to add .env to your .gitignore, don’t want that sensitive info in your code

    echo '.env' >> .gitignore  
    

    Here is what my Procfile looks like

    web: node web.js
    

    Now just start like this

    rerun foreman start web  
    

    Extra Credit, create an alias

    echo "alias rrun='rerun foreman start web'" >> ~/.bash_profile  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I use /etc/init.d/supervisor restart but this restarts all processes under supervisor. Is there
I currently use masonry plugin in my facebook app. Everything is work well but
I currently use, base64_encode() to encode a user's password, this works well because it
I currently use phpthumb to generate thumbnails for profile pictures. http://phpthumb.gxdlabs.com/ This is my
I currently use balsamiq for ui mock ups, but sometimes it does not give
I currently use this style to create a js class like structure: var JSClass
I currently use the following command, but it's a little unwieldy to type. What's
I currently use this handy conversion extension method to do conversions between types: public
Currently I use this to find a bitmap that occurs in another image on
I currently use FixedThreadPool to download images from the web, like this: ExecutorService mThreadPool

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.