npm run <script>
to run a script.
start-node
— start bare node server processdev
— start development server with auto-reloadstart
— start server with monitorstop
— stop monitored serverst
— check styles against js-outlander styledb-migrate
— migrates local DB on latest revisiondb-rollback
— rollbacks local DB last migrations batch
push & run:
To push and run backend deploy
must be used.
cd envest-nodejs
run/deploy --env=<env> --key={pemfile}
migrate: To migrate database use npm scripts.
npm run db-migrate # runs a batch of new migrations
npm run db-rollback # CAREFUL; rollbacks last batch
To snap backup to current machine use backup
script:
run/backup --env=<env> --key={pemfile}
Backup will be stored in local project's backup/
dir.
Swagger DOC: open in browser /docs/
.