Skip to content

Commit

Permalink
trying to get capistrano back in the game
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 17, 2012
1 parent 17e87f9 commit 1b6fd06
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -40,4 +40,4 @@ group :assets do
end

gem 'rake', '~> 0.9.2'

gem 'capistrano', '~> 2.13'
15 changes: 15 additions & 0 deletions Gemfile.lock
Expand Up @@ -30,6 +30,12 @@ GEM
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.4)
capistrano (2.13.5)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
chunky_png (1.2.6)
compass (0.12.2)
chunky_png (~> 1.2)
Expand All @@ -51,6 +57,7 @@ GEM
locale
gettext_i18n_rails (0.8.0)
fast_gettext (>= 0.4.8)
highline (1.6.15)
hike (1.2.1)
hoptoad_notifier (2.4.11)
activesupport
Expand All @@ -71,6 +78,13 @@ GEM
minitest (2.5.1)
multi_json (1.4.0)
mysql2 (0.3.11)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.6.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nokogiri (1.5.5)
pkg-config (1.1.4)
polyglot (0.3.3)
Expand Down Expand Up @@ -128,6 +142,7 @@ PLATFORMS
ruby

DEPENDENCIES
capistrano (~> 2.13)
compass-rails
delayed_job (> 3.0)
delayed_job_active_record
Expand Down
5 changes: 3 additions & 2 deletions config/deploy.rb
Expand Up @@ -11,7 +11,7 @@
set :migrate_target, :current

set :deploy_notification_to, ['tschmidt@suse.de', 'coolo@suse.de']
server "buildserviceapi.suse.de", :app, :web, :db, :primary => true
server "software", :app, :web, :db, :primary => true

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
Expand Down Expand Up @@ -56,6 +56,7 @@
run "ln -s #{shared_path}/options.yml #{release_path}/config/options.yml"
run "rm -r #{release_path}/tmp/cache"
run "ln -s #{shared_path}/software.o.o.cache #{release_path}/tmp/cache"
run "cd #{release_path}; bundle exec rake assets:precompile RAILS_ENV=production --trace"
end

desc "Set permissions"
Expand All @@ -75,7 +76,7 @@
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
run "sv restart /service/delayed_job_software"
run "sv restart /etc/service/delayed_job_software"
end


Expand Down
2 changes: 1 addition & 1 deletion config/initializers/languages.rb
Expand Up @@ -16,7 +16,7 @@
'sk' => 'slovenčina', 'th' => 'ภาษาไทย', 'uk' => 'Українська', 'wa' => 'walon',
'pt_BR' => 'português', 'z_-TW' => '台語', 'zh_CN' => '简体中文' }

FastGettext.add_text_domain 'software', :path => 'locale'
FastGettext.add_text_domain 'software', :path => Rails.root.join('locale')
FastGettext.available_locales = LANGUAGES #all you want to allow
FastGettext.default_text_domain = 'software'
FastGettext.default_locale = 'en'
Expand Down

0 comments on commit 1b6fd06

Please sign in to comment.