Open melissamarcher opened 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" }
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
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" }