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

Setting up Rails, Passenger, Nginx, Mysql and xdelta3 on RED HAT ENTERPRISE LINUX

October 29, 2014

Step 1: Install Redhat RHEL

Step 2: Add a deploy user

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 su - root
yum groupinstall "Development Tools" "Development Libraries"
Setting up Rails, Passenger, Nginx, Mysql and xdelta3 on RED HAT ENTERPRISE LINUX

Everything a Web Designer needs to know about Git!

September 05, 2013

Step 1: Delete your Git GUI!

Don't use Tower because somehow you'll manage to break everything in magical ways that make no sense to me.

Step 2: Assume things!

Well I'm going to assume some things. If these things aren't true, assuming they are won't actually help on your part.

  • You're using a real operating system like OSX or Linux
  • Git is already installed on your system
Everything a Web Designer needs to know about Git!

Setting up MiniTest for a Rails 4 App

October 03, 2014

Getting started is easy!

Add this code:

Gemfile

gem "minitest-rails", github: "blowmage/minitest-rails"
gem "minitest-reporters"

application.rb

config.generators do |g|
  g.test_framework :minitest, spec: true, fixture: true
  g.helper false
  g.view_specs false
end

$> rails g minitest:install

test_helper.rb

Rails.env = "test"
Setting up MiniTest for a Rails 4 App

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