Skip to content

Instantly share code, notes, and snippets.

@danieloskarsson
Last active September 19, 2018 19:49
Show Gist options
  • Save danieloskarsson/6eae13217f8eb84954689dc18870ea4e to your computer and use it in GitHub Desktop.
Save danieloskarsson/6eae13217f8eb84954689dc18870ea4e to your computer and use it in GitHub Desktop.
#!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