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

Parandus start-skriptis

parent e8f99859
#!/bin/bash #!/bin/bash
cd /src cd ./src
git pull git pull
npm install npm install
if [ ! -f /config/config.js ]; then 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 fi
if [ -f /config/config.js ]; then if [ -f /config/config.js ]; then
cp /config/config.js /src/config.js cp /config/config.js ./src/config.js
fi fi
if [ ! -f /src/config.js ]; then if [ ! -f ./src/config.js ]; then
cp -R -u -p /src/config_dist.js /src/config.js cp -R -u -p ./src/config_dist.js ./src/config.js
fi fi
forever start -l /forever.log /src/app.js forever start -l /wrapper/logs/forever.log ./src/app.js
forever list 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