upvista
v0.2.1
Published
Any versioning update server
Downloads
5
Maintainers
Readme
Upvista (work in progress)
Dependencies
- Node.js (v7.2.1+) and npm (v3+)
- PostgreSQL (v9.5+)
ENV variables
see env.ts
Development
First steps
- run
npm install
in project root - see
scripts
inpackage.json
- start PG and
createdb upvista
Main commands
npm run dev
- run server via nodemon (auto relaunch)npm run test-ci
- run unit tests in watch modenpm run coverage
- code coverage in text format in terminalnpm run coverage-html
- code coverage in html format incoverage
folder
Production
- global NODE_ENV=production
- use pm2
npm install -g pm2@latest
cd /path-to-project
npm view upvista dist.tarball | xargs curl | tar --strip-components=1 -zxv
npm install --ignore-scripts
- specify global env before next cmd
pm2 start ./ --name upvista -i max --merge-logs --log-date-format="YYYY-MM-DD HH:mm:ss.SSS Z"
pm2 save
- use
pm2 reload upvista
for reloading - use
pm2 flush
for flush logs - use
pm2 startup
for generate startup script