Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using .env parameters inside Procfile #152

Closed
miguelcjalmeida opened this issue Feb 24, 2018 · 2 comments
Closed

Using .env parameters inside Procfile #152

miguelcjalmeida opened this issue Feb 24, 2018 · 2 comments
Labels

Comments

@miguelcjalmeida
Copy link

Hello!

I am trying to use foreman for the first time and I have tried to use one of my parameters from .env file inside the Procfile, but I didn't succeeded. Maybe I am not allowed to do it, if that is the case I will find a better way to achieve what I need.

My .env file looks like this:
NODECMD=node-dev

My Procfile looks like this:
web: $NODECMD bin/server.js

Thanks for any attention to this matter =)

@rmg
Copy link
Member

rmg commented Jun 29, 2018

This appears correct.

Is node-env a shell alias or function by chance? If so it won't work since the procs are run in sub-shells.

@stale
Copy link

stale bot commented Aug 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 28, 2018
@stale stale bot closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants