perpetuum mobile
22. 11. 2014. deployment * ruby

rails deployment

Setting up Debian 7 server on VPS

nginx and php-fpm

How To Create an SSL Certificate on Nginx for Ubuntu 14.04

( –> see nginx notes )

ruby

sudo apt-get install curl
curl -sSL https://get.rvm.io | bash -s stable --rails

unicorn vs phusion passenger

passenger

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
sudo apt-get install apt-transport-https ca-certificates
# deb https://oss-binaries.phusionpassenger.com/apt/passenger wheezy main
sudo nano /etc/apt/sources.list.d/passenger.list

sudo chown root: /etc/apt/sources.list.d/passenger.list
sudo chmod 600 /etc/apt/sources.list.d/passenger.list
sudo apt-get update

sudo apt-get install nginx-extras passenger

# uncomment passenger_root and passenger_ruby
sudo nano /etc/nginx/nginx.conf

essentials

sudo apt-get install imagemagick
sudo apt-get install monit

ssh key for the git repo

( –> see the git notes )

capistrano

capistrano notes:

  • not all shell variables are automatically available via ssh

Resources