Don't complaing about trying to restart an app that isn't running
authorTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 17:14:12 +0000 (17:14 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 17:14:12 +0000 (17:14 +0000)
cookbooks/web/definitions/rails_port.rb

index 1a57b79..83d0a1a 100644 (file)
@@ -277,7 +277,7 @@ define :rails_port, :action => [:create, :enable] do
 
   execute rails_directory do
     action :nothing
-    command "passenger-config restart-app #{rails_directory}"
+    command "passenger-config restart-app --ignore-app-not-running #{rails_directory}"
     user "root"
     group "root"
     only_if { File.exist?("/usr/bin/passenger-config") }