This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'activerecord', '4.1.1' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# Ensure backward compatibility with Minitest 4 | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :repository, '.' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :user, 'your-user-name' | |
set :deploy_to, "your/application/dir" | |
namespace :deploy do | |
desc <<-DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role :app, 'your-build-server-ip' | |
set :scm, :git | |
set :repository, "your-git-repo-url" | |
set :user, 'your-user-name' | |
set :deploy_to, "/Users/#{user}/deployments/build/#{application}" | |
set :deploy_via, :export | |
set :branch, 'master' | |
set :rails_env, 'build' |