Last active
September 19, 2018 19:49
-
-
Save danieloskarsson/6eae13217f8eb84954689dc18870ea4e to your computer and use it in GitHub Desktop.
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 | |
# Syntax: curl -sL https://gist.github.com/danieloskarsson/6eae13217f8eb84954689dc18870ea4e/raw/ | sudo -E bash | |
# Based on: https://docs.ghost.org/v2/docs/install | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash | |
RUNLEVEL=1 apt-get install -y nginx | |
rm /etc/nginx/sites-enabled/default | |
service nginx start | |
apt-get install -y nodejs | |
npm i -g ghost-cli@latest | |
chown $SUDO_USER:$SUDO_USER ~/.config | |
mkdir -p /var/www/ghost | |
chown $SUDO_USER:$SUDO_USER /var/www/ghost/ | |
chmod 775 /var/www/ghost | |
echo "Ghost prerequisites setup complete!" | |
echo "Change directory to /var/www/ghost and run: \"ghost install\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment