Commit 52ffba8a authored by nostneji's avatar nostneji Committed by GitHub

Parandus start-skriptis

parent e8f99859
#!/bin/bash
cd /src
cd ./src
git pull
npm install
if [ ! -f /config/config.js ]; then
cp -R -u -p /src/config_dist.js /config/config.js
cp -R -u -p ./src/config_dist.js /config/config.js
fi
if [ -f /config/config.js ]; then
cp /config/config.js /src/config.js
cp /config/config.js ./src/config.js
fi
if [ ! -f /src/config.js ]; then
cp -R -u -p /src/config_dist.js /src/config.js
if [ ! -f ./src/config.js ]; then
cp -R -u -p ./src/config_dist.js ./src/config.js
fi
forever start -l /forever.log /src/app.js
forever start -l /wrapper/logs/forever.log ./src/app.js
forever list
tail -f /forever.log
tail -f /wrapper/logs/forever.log
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment