Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Deploying a Rails Application

September 18, 2014

Setting up servers.

  • Follow this guide or clone from another instance that is setup this way.

Deploying to staging.

  • Don't merge feature branches into develop until all tests pass and you're sure it works.
  • Test develop branch and push to staging.
    • Run cap staging depoy
    • Test staging.

Deploying to production.

Deploying a Rails Application

Version Server Conf Files Locally with Git

July 17, 2014

Step 1: Choose the folder

cd your_conf_folder

Step 2: Initialize Git for the Folder

git init

Step 3: Create .gitignore

vim .gitignore

Copy the following whitelisting code into the file and modify where necessary.

# First, ignore everything
*
# Now, whitelist anything that's a directory
!*/
# Add all the file types you're interested in.
!*.one
!*.two
!*.etc
Version Server Conf Files Locally with Git

Setting up an Ubuntu 13.04 Server for Rails

May 25, 2013

Step 1: Install Ubuntu

Step 2: Add a deploy user

sudo adduser deploy

Step 3: Update and Install dependencies

Make sure that each line completes before running the next. Don't just copy the lines in all at once or it will use the beginning letters of one line as an answer to questions the first may ask.

sudo apt-get -y update && sudo apt-get -y upgrade
Setting up an Ubuntu 13.04 Server for Rails

How To Install Ruby on Rails on Mavericks (OSX 10.9)

October 26, 2013

Step 1: Install XCode Command Line Tools

xcode-select --install

Step 2: Install and prepare Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
brew doctor
brew update

Step 3: Install rbenv

brew install rbenv ruby-build openssl
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile

Step 4: Install Ruby

How To Install Ruby on Rails on Mavericks (OSX 10.9)