deploying scripts
This commit is contained in:
1 parent
5f5909d2e9
commit
3015e14e9c
4 files changed
+40
-3
No files matched your search
Executable
+18
@@ -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
|
||||
Reference in new issue
Block a user