deploying scripts

This commit is contained in:
tmshv committed 2014-11-24 18:30:31 +03:00
1 parent 5f5909d2e9
commit 3015e14e9c
4 files changed
+40 -3

No files matched your search

Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
cd ~/art
tar xvf ../www-build.tar
rm ../www-build.tar
npm install --production
node_modules/bower/bin/bower install
export NODE_ENV=production
export PORT=18010
#starting www
if forever restart bin/www.js; then
echo www.js restarted
else
forever start bin/www.js
echo www.js started
fi