-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,7 @@ echo " " >> emailFile | |
echo " " >> emailFile | ||
echo " " >> emailFile | ||
tail -n 100 nohup.out >> emailFile | ||
echo " " >> emailFile | ||
echo " " >> emailFile | ||
tail -n 100 nohup.err >> emailFile | ||
sendmail [email protected] < emailFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,15 @@ | |
# - Check Dreamhost password correct before starting | ||
# - Turn off server (w/out errors) before starting -- what if there's an inspector waiting though? | ||
# - SCP once (seems login is incredibly slow, but actual copying is fast) | ||
# - View initial server start log? Or some way to show that the server has successfully started? | ||
|
||
printf "Enter the password for Dreamhost: " | ||
read -s passphrase | ||
|
||
|
||
# Wtf??? | ||
scp -i ~/home/awskeypair.pem -r dist/js/SCRIPTINJECT.js [email protected]:~/myquest/dist/js/ | ||
|
||
ssh -i ~/home/awskeypair.pem -t [email protected] << EOF | ||
cd myquest | ||
|
@@ -48,11 +52,12 @@ ssh -i ~/home/awskeypair.pem -t [email protected] | |
node fuckingtaskrunner.js --dont-watch | ||
# SCP game to webserver | ||
sshpass -p "$passphrase" scp -r dist/ [email protected]:~/jbud.me/playground/myquest/ | ||
sshpass -p "$passphrase" scp -r node_modules/ [email protected]:~/jbud.me/playground/myquest/ | ||
sshpass -p "$passphrase" scp index.html [email protected]:~/jbud.me/playground/myquest/ | ||
sshpass -p "$passphrase" scp styles.css [email protected]:~/jbud.me/playground/myquest/ | ||
sshpass -p "$passphrase" scp -r ./{dist,node_modules,index.html,styles.css} [email protected]:~/jbud.me/playground/myquest/ | ||
# Running server | ||
sudo killall runserver | ||
ps aux | grep -i node | awk '{ print $2 }' | xargs kill -9 $1 | ||
nohup ./runserver > nohup.out 2> nohup.err < /dev/null & | ||
echo "Finished patching" | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters