Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

npm install production

# This will install only dependencies , and not devDependencies , 
# regardless of the value of the NODE_ENV environment variable.
npm install --omit=dev

npm install --only=prod 
Comment

npm install production

# Set NODE_ENV=production
# OR
npm install --production
Comment

npm install production

npm install --only=prod 
Comment

npm start on production

Basic usage of PM2:

npm install -g pm2
...to install PM2.

pm2 start my_script.js
Starts a script and lets it run in background.

pm2 status
Shows the status of any running scripts.

pm2 restart all
Restarts all running scripts.

pm2 kill
Stops all scripts and completely shuts down the PM2 daemon.

pm2 monit
Monitors CPU/RAM usage and shows it.

pm2 logs
Comment

PREVIOUS NEXT
Code Example
Shell :: Package "ngx-material-file-input" 
Shell :: bash vertical bar 
Shell :: install google chrome on ubuntu 
Shell :: bc sum command 
Shell :: how to make all directory 775 
Shell :: unzip a tar.gz file in linux 
Shell :: install airflow in mac 
Shell :: linux make user like root 
Shell :: git always commit with gpg 
Shell :: get vscode extensions with ps1 
Shell :: bash check if file empty 
Shell :: sudo apt uninstall 
Shell :: install typescript in node project 
Shell :: generate patch file git 
Shell :: rc.local not running 
Shell :: powershell function 
Shell :: zsh: no matches found: with * 
Shell :: npm install typeorm 
Shell :: install pgcli linux 
Shell :: find command recursive 
Shell :: bash scripts options 
Shell :: grep count lines 
Shell :: Remove all your local git branches but keep master 
Shell :: manjaro nvidia driver 
Shell :: How to install p12 certificate in ubuntu 
Shell :: show internet password 
Shell :: enable null safety flutter using cmd 
Shell :: git see tags 
Shell :: ubuntu reset path 
Shell :: copy from remote to local 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =