Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Several fixes in capistrano recipe

 * Switch to ruby 2.1
 * Avoid sync with static.o.o (not used since some time ago)
 * Use rake.ruby instead of plain rake
  • Loading branch information...
1 parent bea89bb commit c850e97c57ad21b31cbeefdda30839fd917c12ca @ancorgs ancorgs committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 config/deploy.rb
6 config/deploy.rb
@@ -38,14 +38,14 @@
set :runner, "root"
after "deploy:update_code", "config:symlink_shared_config"
-after "deploy:update_code", "config:sync_static"
+#after "deploy:update_code", "config:sync_static"
after "deploy:create_symlink", "config:permissions"
after "deploy:restart", "deploy:notify"
set :keep_releases, 5
after 'deploy:update', 'deploy:cleanup' # only keep 5 releases
-io = IO.popen('BUNDLE_FROZEN=1 BUNDLE_WITHOUT=test:development bundle show --paths | sed -e "s,.*/,,; s,^,rubygem(2.0.0:,; s,-\([^-]*\)$,) = \1,"')
+io = IO.popen('BUNDLE_FROZEN=1 BUNDLE_WITHOUT=test:development bundle show --paths | sed -e "s,.*/,,; s,^,rubygem(2.1.0:,; s,-\([^-]*\)$,) = \1,"')
zypperlines = io.readlines
@@ -70,7 +70,7 @@
run "cd #{release_path}; zypper -n in -C \"#{zypperlines.join('" "')}\""
run "cd #{release_path}; bundle config --local frozen 1; bundle config --local without test:development"
run "cd #{release_path}; bundle show"
- run "cd #{release_path}; bundle exec rake assets:precompile RAILS_ENV=production --trace"
+ run "cd #{release_path}; bundle exec rake.ruby assets:precompile RAILS_ENV=production --trace"
desc "Set permissions"

0 comments on commit c850e97

Please sign in to comment.
Something went wrong with that request. Please try again.