emicludo / DevOps-group_s

MIT License
0 stars 3 forks source link

Update script for production build #64

Open melissamarcher opened 1 year ago

melissamarcher commented 1 year ago

npm install --production

Set env variable:

NODE_ENV=production

Possible scripts: "scripts": { "start": "NODE_ENV=production node app.js", "dev": "nodemon app.js", "build": "npm run build:clean && npm run build:server", "build:clean": "rm -rf dist && mkdir dist", "build:server": "babel src --out-dir dist --copy-files", "test": "mocha tests/*/.test.js" }

nikogio commented 1 year ago

The idea : improve response time Ideally not use npm start, but npm run build and extra flags Ideally also create indexes on db to speed up performances