Skip to content

Instantly share code, notes, and snippets.

@scmx
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmx/3b05cd80e530af0efe0a to your computer and use it in GitHub Desktop.
Save scmx/3b05cd80e530af0efe0a to your computer and use it in GitHub Desktop.
#ubuntu #14.04 #new #server #ruby #rails #nginx #unicorn
# Create a new server
# Always choose a LTS (Long Term Stable) ubuntu release,
# such as 12.04, 14.04 etc
apt-get update
# Pick and choose what you need
apt-get install tmux
apt-get install git-core
apt-get install imagemagick libmagickcore-dev libmagickwand-dev
apt-get install mysql-server mysql-client libmysqlclient-dev
# Create a deploy user or similar
adduser deploy
# Install ruby and dependencies
# https://gist.github.com/scmx/9489499
# Install passenger if using apache
# http://www.modrails.com/documentation/Users%20guide%20Apache.html#install_on_debian_ubuntu
# Install unicorn + nginx otherwise
apt-get install nginx
# As deploy user
# Install unicorn
gem install unicorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment