- Configure
nginx/default
- Configure
package.json
and npm scripts (connect
) - Configure
flightplan.js
- Configure
util/config.js
as needed - Optional:
npm i -g nodemon
for server testing.nodemon
to run server. Use your own development workflow as you want
- Install nginx.
apt-get install nginx
- Install pm2.
npm i -g pm2
- Download letencrypt for https certs. https://letsencrypt.org/
flightplan
is used for deployment to your server. Use this byfly production | staging
.pm2
is used on the server to manage node server instances.production.json
is the config for the production instance (fly production
)staging.json
is the config for the staging instance (fly staging
)
gulp
is used for building the distribution of the server instances. Build output is/dist
nginx
is used for passing port80
traffic to production port3000
, and passing port8080
traffic to staging port8000
- Make code changes
fly staging
to push changes to staging instance- Access staging server by
domain:8080
- Remotely:
pm2 logs server | server-staging
to view verbose & error logs fly production
to push changes to production