You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PORT=4800 npm start
> sgmap.ludwig@0.3.0 start /Users/sgmap/Dev/ludwig
> babel-node server.js
Express server listening on localhost:3000, in development mode
The PORT env variable is a very common convention. However, since most of the setup of this app is made through npm config, we should support port in the npm config (which will also make explicit the default port), overridable by env.PORT.
The text was updated successfully, but these errors were encountered:
You're mistaking app.get('env') with process.env. The former is more or less an equivalent of NODE_ENV and contains stuff like development or production, not the list of environment variables 😉
The
PORT
env variable is a very common convention. However, since most of the setup of this app is made throughnpm config
, we should supportport
in the npm config (which will also make explicit the default port), overridable byenv.PORT
.The text was updated successfully, but these errors were encountered: