-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
move PORT from package.json to config.js #81
Comments
I made a heroku branch to test deployment, and I ended up just running babel.server.js directly, not using |
I kind of like having the port also be a command line parameter. In case one wanted to run two servers at one time from the same code base or something crazy like that. |
Was this change pushed to master? Heroku is still picking up the port from package.json instead of config.js for me. |
@keshavmesta No, it was not. July was like a millennium ago in JS dev time. 😄 |
Heroku deploys dynamically set
$PORT
on their dyno, so in order to fully support it we'd have to move what's currently being defined (as 8080) inpackage.json
betterScripts
start
to aport
property ofprocess.env.PORT || 8080
on the config object.I then had to modify my server.js at the bottom to:
Let me know if you'd like me to formally make a PR, I won't be able to get around to it until next week though.
The text was updated successfully, but these errors were encountered: