Last active
December 27, 2015 07:39
-
-
Save oodavid/7290587 to your computer and use it in GitHub Desktop.
Install NexGen Server
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
#!/bin/bash | |
# | |
# Install NexGen Server | |
# https://gist.github.com/oodavid/7290587 | |
# | |
# To download | |
# cd /home/ubuntu/ | |
# wget -O nexgen.pull.sh https://gist.github.com/oodavid/7290587/raw/nexgen.pull.sh | |
# | |
# To run at boot | |
# sudo chmod 0777 nexgen.pull.sh | |
# sudo nano /etc/rc.local | |
# Add the following: | |
# # Pull from github | |
# sudo -Hu www-data /home/ubuntu/nexgen.pull.sh | |
# CD into the folder | |
cd /var/www/html | |
# Get yer coat, you've pulled | |
git pull | |
# Update the submodules | |
git submodule sync | |
git submodule update | |
# Make our healthy file for auto-scaling (this file is .gitignored) | |
echo 'Git Ready!' > healthy-aws.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment