Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 691 Bytes

CLI.md

File metadata and controls

54 lines (40 loc) · 691 Bytes

Command-line

Here is a list of my custom scrips, commands and procedures, related to the app deployment.

Reverse proxy for the app

sudo a2proxy 'bballs' '48001'
sudo a2proxy 'bballs' remove

Docker container for the app

# docker run -p '48001':'48001' 'bballs' -d
docker-compose up -d
docker-compose down
docker-prune.sh

PM2 service for the app

cd app/
npm install
pm2 start 'npm run watch' --name 'bballs'
pm2 save
pm2 start 'npm start' --name 'bballs'
pm2 save
pm2 stop 'bballs'
pm2 delete 'bballs'
pm2 save