Skip to content

Instantly share code, notes, and snippets.

@scottcrawford03
Created May 31, 2018 17:54
Show Gist options
  • Save scottcrawford03/dac7ee69fcfc7ed391fcb12572e860e9 to your computer and use it in GitHub Desktop.
Save scottcrawford03/dac7ee69fcfc7ed391fcb12572e860e9 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install -y nginx
sudo chown -R `whoami`:`id -gn` /var/www/html
mkdir static
cd static
git init --bare
touch hooks/post-receive
printf "#!/bin/bash\n \
git --work-tree=/var/www/html --git-dir=/root/static checkout -f\n" >> hooks/post-receive
chmod +x hooks/post-receive
@scottcrawford03
Copy link
Author

see https://github.com/scottcrawford03/static for post droplet create steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment