Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

allow port to be changed in nodize.json #10

Closed
notslang opened this issue Dec 9, 2012 · 1 comment
Closed

allow port to be changed in nodize.json #10

notslang opened this issue Dec 9, 2012 · 1 comment

Comments

@notslang
Copy link

notslang commented Dec 9, 2012

It doesn't seem like there is any way to change the port that nodize runs on, other than editing app.coffee. It would be nice to specify which it uses since, for me, port 3000 is in use by another application.

@Hypee
Copy link
Contributor

Hypee commented Dec 10, 2012

The way to define the port is to use the "PORT" environment variable :
PORT=80 NODE_ENV=production coffee app.coffee

I think it's quite usual in the Node.js world, but that's ok for me to add a parameter in the config file that will be used if no environment variable is defined.

@Hypee Hypee closed this as completed in 1bb25ac Dec 17, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants