deploy with shell -> deploy.sh

#!/bin/bash
tar czf easyio.tar.gz main.js package.json yarn.lock public LICENSE
scp easyio.tar.gz 188.122.227.21:~
rm easyio.tar.gz

ssh 188.122.227.21 << 'ENDSSH'
pm2 stop easyio
rm -rf easyio
tar xf easyio.tar.gz -C easyio
rm easyio.tar.gz
cd easyio
yarn install
pm2 start easyio
ENDSSH

results matching ""

    No results matching ""