strongloop / node-foreman

A Node.js Version of Foreman
http://strongloop.github.io/node-foreman/
Other
1.27k stars 119 forks source link

Using .env parameters inside Procfile #152

Closed miguelcjalmeida closed 6 years ago

miguelcjalmeida commented 6 years ago

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 commented 6 years ago

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[bot] commented 6 years ago

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.