Permalink
Browse files

Deploy without precompiling assets

  • Loading branch information...
1 parent 33e3c9c commit 9a3fe70e6b47562592306e07f15e078a7a6241a7 @iboard committed Apr 3, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 config/deploy.rb
  2. +5 −1 config/recipes/webrick.rb
View
2 config/deploy.rb
@@ -37,6 +37,6 @@
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
-before "deploy:assets:precompile", "bundle:install"
+before "deploy:assets:precompile", "bundle:install" unless File::exist?(File.expand_path('../precompile_assets.txt',__FILE__))
after "deploy", "deploy:cleanup" # keep 5 versions only
View
6 config/recipes/webrick.rb
@@ -21,7 +21,11 @@
process = `ps xa|grep "server -d -p #{port} -b #{bind_ip} --environment=production --pid=#{pidpath}"`
pid = process.strip.split(/\b/)[0]
puts "Found running process at #{process}"
- run "kill -9 #{pid}"
+ begin
+ run "kill -9 #{pid}"
+ rescue => f
+ puts "Exception: #{f.inspect}"
+ end
end
end
when 'restart'

0 comments on commit 9a3fe70

Please sign in to comment.