Skip to content

Instantly share code, notes, and snippets.

View travisp's full-sized avatar

Travis Pew travisp

View GitHub Profile
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Mokabla
class Application < Rails::Application
c/environment.rb
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Mokabla::Application.initialize!
if defined?(PhusionPassenger) && !Rails.env.development?
PhusionPassenger.on_event(:starting_worker_process) do |forked|
# Reset Rails's object cache
# Only works with DalliStore
@travisp
travisp / cmd-line-error
Created October 31, 2011 20:01
Ruby 1.9.2-p290 install via RVM 1.9.2
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /home/travis/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching yaml-0.1.4.tar.gz to /home/travis/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/travis/.rvm/src
Configuring yaml in /home/travis/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/travis/.rvm/src/yaml-0.1.4.
ERROR: Error running 'make ', please read /home/travis/.rvm/log/ruby-1.9.2-p290/yaml/make.log
Installing yaml to /home/travis/.rvm/usr
ERROR: Error running 'make install', please read /home/travis/.rvm/log/ruby-1.9.2-p290/yaml/make.install.log
ruby-1.9.2-p290 - #configuring

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server: