Skip to content
This repository
Browse code

Force assets to regen per app server properly

  • Loading branch information...
commit 4d9b7fec41a9a8370ade8b8da3e1183dd6ab1674 1 parent 99d0d2a
Evan Phoenix evanphx authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  lib/deploy/unicorn.rb
2  lib/deploy/unicorn.rb
@@ -5,6 +5,8 @@
5 5 namespace :deploy do
6 6 task :start, :roles => :app, :except => { :no_release => true } do
7 7 run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D"
  8 + # This forces rails to do asset generation
  9 + run "curl localhost > /dev/null 2>&1"
8 10 end
9 11
10 12 task :stop, :roles => :app, :except => { :no_release => true } do

0 comments on commit 4d9b7fe

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