mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added install script
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
cd /var/www
|
cd /var/www
|
||||||
git stash
|
git stash
|
||||||
git pull
|
git pull
|
||||||
./setperms.sh
|
./setperms.sh
|
||||||
|
forever restartall
|
||||||
|
|
||||||
|
|||||||
11
install.sh
Executable file
11
install.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
apt-get update
|
||||||
|
apt-get install npm
|
||||||
|
apt-get install nodejs
|
||||||
|
npm install -g forever
|
||||||
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/server
|
||||||
|
forever stopall
|
||||||
|
CMD="forever start -l /var/log/zoff.log -a --workingDir $DIR $DIR/server.js"
|
||||||
|
crontab -l | { cat; echo "@reboot" $CMD; } | crontab -
|
||||||
|
$CMD
|
||||||
|
echo $CMD
|
||||||
Reference in New Issue
Block a user