This file contains hidden or 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
### Rakefile | |
task :template do | |
require 'yaml' | |
require 'erb' | |
base = File.join(File.dirname(__FILE__), 'config') | |
source = File.join(base, 'dna.json.erb') | |
target = File.join(base, 'dna.json') | |
recipes = ENV['recipe'] || %w(packages users gems) |
This file contains hidden or 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
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
# 16 workers and 1 master | |
worker_processes (rails_env == 'production' ? 16 : 4) | |
# Load rails+github.git into the master before forking workers | |
# for super-fast worker spawn times | |
preload_app true |
This file contains hidden or 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
#!/bin/sh | |
set -u | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
APP_ROOT=/home/deploy/public_html/rm/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENV=production |
This file contains hidden or 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
#!/bin/bash | |
# run with: curl -s http://gist.github.com/265272.txt | bash | |
set -e | |
localdir=$HOME/.mongodb | |
datadir=$localdir/data | |
conf=$localdir/mongod.conf | |
agentdir=$HOME/Library/LaunchAgents | |
agent=$agentdir/org.mongodb.mongod.plist |
This file contains hidden or 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
task :stage1 do | |
set :default_environment, { | |
'PATH' => "/home/rrichards/.rvm/rubies/ruby-1.8.7-p249/bin:/home/rrichards/.rvm/gems/ruby-1.8.7-p249/bin:/home/rrichards/.rvm/gems/ruby-1.8.7-p249@global/bin:/home/rrichards/.rvm/bin:$PATH", | |
'RUBY_VERSION' => 'ruby 1.8.7', | |
'GEM_HOME' => '/home/rrichards/.rvm/gems/ruby-1.8.7-p249', | |
'GEM_PATH' => '/home/rrichards/.rvm/gems/ruby-1.8.7-p249:/home/rrichards/.rvm/gems/ruby-1.8.7-p249@global', | |
'BUNDLE_PATH' => '/home/rrichards/.rvm/gems/ruby-1.8.7-p249' | |
} | |
set :deploy_to, "/home/rrichards/www/freedomsoft" |
This file contains hidden or 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
namespace :db do | |
desc 'Seed database from db/seed.sql file instead of the traditional db/seed.rb' | |
namespace :seed do | |
config = Rails::Configuration.new.database_configuration[RAILS_ENV] | |
seed_sql = File.expand_path(File.dirname(__FILE__) + '/../../db/seed.sql') | |
if !File.exists?(seed_sql) | |
puts "Missing RAILS_ROOT/db/seed.sql" |
This file contains hidden or 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
<VirtualHost *:80> | |
# Admin email, Server Name (domain name) and any aliases | |
ServerAdmin [email protected] | |
ServerName stage1.freedomsoft.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html | |
DocumentRoot /var/www/apps/my.freedomsoft.com/current/public |
This file contains hidden or 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
<VirtualHost *:80> | |
# Admin email, Server Name (domain name) and any aliases | |
ServerAdmin [email protected] | |
ServerName justinbuyertest.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html | |
DocumentRoot /var/www/apps/websites.freedomsoft.com/current/public |
This file contains hidden or 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
(in /var/www/apps/chargify.com/releases/20100714220017) | |
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ |
This file contains hidden or 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
(in /var/www/apps/chargify.com/releases/20100714220017) | |
Using the default profile... | |
..........................F--........................F--..............F--........F--.............................................F.............F.....................F..........................F-.........F-........F-.........F-............................F----.........F----.........F----...........F-----...........F------..........F---..........................F-................................................................................................................................................................................F--.............................................................................................F--....................F--................................F--...............F-....................F-...................F-...............F-....................F-...................F-......................F----.......................................................F--....................................F |