Test of setting runtime app environment in different deployments
This option requires node running locally
node server.js
# or
npm startThis option requires node running locally
set PORT=4200 && node server.js
# or
npm run start:setThis option requires node running locally
- Make a copy of
.example.envfile and name it.env. Replace the values with your specific configuration. Note that this file is already listed in.gitignoreso it won't get pushed to github. Do not to include extra spaces or quotes. These values are taken verbatum.
NODE_ENV=development
PORT=8626- start the app
node -r dotenv/config server.js
# or
npm run start:dotenvThis option requires ...
This option requires ...
This option requires ...