Created
December 4, 2012 00:01
-
-
Save greendog/4199219 to your computer and use it in GitHub Desktop.
Rails.restart for nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.class.__send__(:define_method, 'restart') do | |
File.open(Rails.root.join("tmp/restart.txt"), "w+") do |f| | |
f.write(" ") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment