tweaks
This commit is contained in:
parent
877115a1cb
commit
73cfa118e7
@ -16,8 +16,9 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run_all
|
def run_all
|
||||||
Notifier.notify("Rails restarting on port #{options[:port]} in #{options[:environment]}", :title => "Restarting Rails...", :image => :pending)
|
Notifier.notify("Rails restarting on port #{options[:port]} in #{options[:environment]} environment...", :title => "Restarting Rails...", :image => :pending)
|
||||||
stop_rails ; start_rails
|
stop_rails ; start_rails
|
||||||
|
Notifier.notify("Rails restarted on port #{options[:port]}.", :title => "Rails restarted!", :image => :success)
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
@ -36,6 +37,7 @@ module Guard
|
|||||||
|
|
||||||
def start_rails
|
def start_rails
|
||||||
system %{sh -c 'rails s -d -e #{options[:environment]} -p #{options[:port]} --pid #{pid_file}'}
|
system %{sh -c 'rails s -d -e #{options[:environment]} -p #{options[:port]} --pid #{pid_file}'}
|
||||||
|
UI.info "Rails running, PID #{File.read(pid_file)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_rails
|
def stop_rails
|
||||||
|
Loading…
Reference in New Issue
Block a user