Skip to content

Commit

Permalink
updating gemfile and config files
Browse files Browse the repository at this point in the history
  • Loading branch information
HamptonMakes committed Jun 3, 2010
1 parent d707f77 commit 31a4ac7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -5,6 +5,7 @@ source :gemcutter
merb_gems_version = "1.1.0"
#disable_system_gems

gem "bundler", "0.9.5"
gem "memcache-client", "1.7.5", :require => []
gem "curb", "0.5.4.0"
gem "nokogiri", "1.3.3"
Expand All @@ -14,6 +15,7 @@ gem "moneta", "0.6.0"
gem "json_pure"
gem "typhoeus"
gem "haml"
gem "abstract"

#gem "do_mysql", :bundle => false
#gem "mysql", :bundle => false
Expand All @@ -26,3 +28,4 @@ gem "merb-mailer", merb_gems_version
gem "merb-exceptions", merb_gems_version

gem "rake"
gem "rspec"
2 changes: 2 additions & 0 deletions config.ru
Expand Up @@ -8,6 +8,8 @@ rescue LoadError
require 'rubygems'
end

require 'bundler'

require 'merb-core'

Merb::Config.setup(:merb_root => ::File.expand_path(::File.dirname(__FILE__)),
Expand Down
28 changes: 7 additions & 21 deletions config/deploy.rb
Expand Up @@ -7,35 +7,21 @@
set :deploy_to, "/srv/#{application}"
set :branch, "stable"

role :web, "mobile1.wikimedia.org"#, "mobile2.wikimedia.org"
role :cache, "mobile1.wikimedia.org"
set :use_sudo, false

role :web, "mobile1.wikimedia.org", "mobile2.wikimedia.org"

namespace :deploy do

task :gems do
#run "cd #{current_path} && bundle install"
end

task :after_update do
gems
end

task :restart do
run "#{current_path}/bin/server --onebyone -C #{current_path}/config/thins/mobile.yml restart"
end

task :start do
begin
run "#{current_path}/bin/server -C #{current_path}/config/thins/mobile.yml start"
rescue
retry
end
end

task :stop do
begin
run "#{current_path}/bin/server -C #{current_path}/config/thins/mobile.yml stop"
rescue
end
run "touch #{current_path}/tmp/restart.txt"
end
end

0 comments on commit 31a4ac7

Please sign in to comment.