Test bin Files
parent
a616b51ef3
commit
e595938ef0
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
/sbin/pidof /home/ofbbutte/webapps/ofb_angular_test/bin/node > /dev/null 2>&1 && exit 0
|
||||||
|
mkdir -p /home/ofbbutte/webapps/ofb_angular_test/run
|
||||||
|
nohup /home/ofbbutte/webapps/ofb_angular_test/bin/node /home/ofbbutte/webapps/ofb_angular_test/src/app.js > /dev/null 2>&1 &
|
||||||
|
/sbin/pidof /home/ofbbutte/webapps/ofb_angular_test/bin/node > /home/ofbbutte/webapps/ofb_angular_test/run/node.pid
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
/usr/bin/pkill -f /home/ofbbutte/webapps/ofb_angular_test/bin/node && rm -f /home/ofbbutte/webapps/ofb_angular_test/run/node.pid
|
||||||
|
|
@ -16,8 +16,6 @@ fi
|
||||||
if [ "$BRANCH" = master ]; then
|
if [ "$BRANCH" = master ]; then
|
||||||
cd /home/ofbbutte/webapps/ofb_angular_test/
|
cd /home/ofbbutte/webapps/ofb_angular_test/
|
||||||
fi
|
fi
|
||||||
exit 1
|
|
||||||
|
|
||||||
|
|
||||||
echo "Node Version"
|
echo "Node Version"
|
||||||
bin/node --version
|
bin/node --version
|
||||||
|
|
@ -53,8 +51,14 @@ echo "Remove start and stop script files"
|
||||||
rm -f bin/start
|
rm -f bin/start
|
||||||
rm -f bin/stop
|
rm -f bin/stop
|
||||||
echo "Copying start and stop script files"
|
echo "Copying start and stop script files"
|
||||||
mv tempcheckout/Server/bin/start bin/start
|
if [ "$BRANCH" = master ]; then
|
||||||
mv tempcheckout/Server/bin/stop bin/stop
|
mv tempcheckout/Server/bin/start bin/start
|
||||||
|
mv tempcheckout/Server/bin/stop bin/stop
|
||||||
|
fi
|
||||||
|
if [ "$BRANCH" = test ]; then
|
||||||
|
mv tempcheckout/Server/bin/start_test bin/start
|
||||||
|
mv tempcheckout/Server/bin/stop_test bin/stop
|
||||||
|
fi
|
||||||
ls
|
ls
|
||||||
echo "Modifying permissions on start and stop script files to be executable"
|
echo "Modifying permissions on start and stop script files to be executable"
|
||||||
chmod +x bin/start
|
chmod +x bin/start
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue