Skip to content

Instantly share code, notes, and snippets.

@devigned
Last active February 15, 2017 23:20
Show Gist options
  • Save devigned/ca0dce313ab3d40a8e6f0e28034c71d0 to your computer and use it in GitHub Desktop.
Save devigned/ca0dce313ab3d40a8e6f0e28034c71d0 to your computer and use it in GitHub Desktop.
Configure Rails server
# install Nginx
sudo apt-get update
sudo apt-get install curl git-core nginx nodejs -y
# don't install documentation with gems
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
# add RVM's key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
# install RVM w/ Rails support
curl -sSL https://get.rvm.io | bash -s stable --rails
source ~/.rvm/scripts/rvm
rvm requirements
# add a production Rails secret -- this should not be public
printf "production:\n secret_key_base: a9745e5b12014e7a9405c0feda86add32e0ce755661f6c118f2a6089ef0025590a70ebc173ae6906ee303fd0f2e9bff701a8a9c19328d67faefdd525ead7e4ec\n" > ~/secrets.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment