Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Set all paths to ruby 2.0.0-p195
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Jul 16, 2013
1 parent c50da63 commit e6ef45e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rvm:
- 2.0
- 2.0.0-p195

script:
- "rake db:migrate RAILS_ENV=test"
Expand Down
10 changes: 4 additions & 6 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,19 @@
end
end

desc "Zero-downtime restart of Unicorn (&god)"
desc "Zero-downtime restart of Unicorn"
task :restart, :except => { :no_release => true } do
run "kill -s USR2 `cat /tmp/unicorn.#{application}.pid`"
end

desc "Start unicorn (& god)"
desc "Start unicorn"
task :start, :except => { :no_release => true } do
run "cd #{current_path} ; bundle exec unicorn_rails -c config/unicorn.rb -D"
start_god
end

desc "Stop unicorn (& god)"
desc "Stop unicorn"
task :stop, :except => { :no_release => true } do
run "kill -s QUIT `cat /tmp/unicorn.#{application}.pid`;rm -r #{latest_release}/tmp/pids"
stop_god
end

desc "Restart god"
Expand All @@ -134,7 +132,7 @@
end

desc "Stop & start unicorn"
task :stopstart, :except => { :no_release => true } do
task :stop_start, :except => { :no_release => true } do
stop
start
end
Expand Down
8 changes: 4 additions & 4 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

default_environment["RAILS_ENV"] = 'production'

default_environment["PATH"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3/bin:/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3/bin:/usr/local/rvm/rubies/ruby-1.9.3-p362/bin:/usr/local/rvm/bin:$PATH"
default_environment["GEM_HOME"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3"
default_environment["GEM_PATH"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3:/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3"
default_environment["RUBY_VERSION"] = "ruby-1.9.3-p362"
default_environment["PATH"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3/bin:/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3/bin:/usr/local/rvm/rubies/ruby-2.0.0-p195/bin:/usr/local/rvm/bin:$PATH"
default_environment["GEM_HOME"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3"
default_environment["GEM_PATH"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3:/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3"
default_environment["RUBY_VERSION"] = "ruby-2.0.0-p195"
8 changes: 4 additions & 4 deletions config/deploy/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

default_environment["RAILS_ENV"] = 'staging'

default_environment["PATH"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3_staging/bin:/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3_staging/bin:/usr/local/rvm/rubies/ruby-1.9.3-p362/bin:/usr/local/rvm/bin:$PATH"
default_environment["GEM_HOME"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3_staging"
default_environment["GEM_PATH"] = "/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3_staging:/usr/local/rvm/gems/ruby-1.9.3-p362@joegattnet_v3_staging"
default_environment["RUBY_VERSION"] = "ruby-1.9.3-p362"
default_environment["PATH"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3_staging/bin:/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3_staging/bin:/usr/local/rvm/rubies/ruby-2.0.0-p195/bin:/usr/local/rvm/bin:$PATH"
default_environment["GEM_HOME"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3_staging"
default_environment["GEM_PATH"] = "/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3_staging:/usr/local/rvm/gems/ruby-2.0.0-p195@joegattnet_v3_staging"
default_environment["RUBY_VERSION"] = "ruby-2.0.0-p195"

0 comments on commit e6ef45e

Please sign in to comment.