Commit 77d04d22 by Ibrahim Awwal

Actually use guard for something useful and restart Unicorn when files change.

parent 3602ec58
......@@ -10,4 +10,10 @@
# * :daemonize (default is true) - should the Unicorn server start daemonized?
# * :config_file (default is "config/unicorn.rb") - the path to the unicorn file
# * :pid_file (default is "tmp/pids/unicorn.pid") - the path to the unicorn pid file
guard :unicorn, :daemonize => false, :port => 4567
guard :unicorn, :daemonize => false, :port => 4567 do
watch('app.rb')
watch(%|api/.*\.rb|)
watch(%|lib/.*\.rb|)
watch(%|models/.*\.rb|)
watch(%|config/.*\.rb|)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment