diff --git a/delete.sh b/delete.sh index 6acbefd..b9d6fb7 100644 --- a/delete.sh +++ b/delete.sh @@ -2,9 +2,14 @@ name="$1" sshURL="$2" +nodePort=`cat env/nodePort` +export NODEPORT=$nodePort +forever stop $workingPath/node_rtc/app.js + rm -rf /var/www/gitwrapper/$name rm /etc/apache2/sites-enabled/$name.conf + /usr/sbin/service apache2 restart exit 0