Closed swobspace closed 11 years ago
Daemon mode does not works? Did you get the same notification of your OS and the same output in Guard console when you run rails in daemon and in foreground?
0.3.1:
% bundle exec guard
11:32:45 - INFO - Guard uses Libnotify to send notifications.
11:32:46 - INFO - Bundle already up-to-date
11:32:46 - INFO - Guard::Rails will now restart your app on port 3000 using
development environment.
11:32:46 - INFO - Starting Rails...
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
11:32:50 - INFO - Rails started, pid 15424
11:32:50 - INFO - LiveReload 1.6 is waiting for a browser to connect.
11:32:50 - INFO - Starting Spork for RSpec
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
Rack::File headers parameter replaces cache_control after Rack 1.5.
Spork is ready and listening on 8989!
11:32:55 - INFO - Spork server for RSpec successfully started
11:32:55 - INFO - Guard::RSpec is running
11:32:55 - INFO - Guard is now watching at
'/home/wob/doc/Projects/beschlussdb'
0.3.4:
% bundle exec guard
11:34:27 - INFO - Guard uses Libnotify to send notifications.
11:34:27 - INFO - Bundle already up-to-date
11:34:28 - INFO - Guard::Rails will now restart your app on port 3000 using
development environment.
11:34:28 - INFO - Starting Rails...
11:34:28 - INFO - LiveReload 1.6 is waiting for a browser to connect.
11:34:28 - INFO - Starting Spork for RSpec
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
Rack::File headers parameter replaces cache_control after Rack 1.5.
Spork is ready and listening on 8989!
11:34:33 - INFO - Spork server for RSpec successfully started
11:34:33 - INFO - Guard::RSpec is running
11:34:33 - INFO - Guard is now watching at
'/home/wob/doc/Projects/beschlussdb'
The following lines are missing in 0.3.4 after "starting rails":
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
11:32:50 - INFO - Rails started, pid 15424
In foreground mode i get this three lines also with 0.3.4
I rollback to use sh -c
to start Rails for avoiding platforms issue.
Check out the v0.4.0. Thanks~
v0.4.0 works for me. Thank you.
I have upgraded to guard-rails 0.3.4, now guard-rails does not longer start as daemon. Foreground works, but daemon mode not.
0.3.1 seems also okay, so this bug may be introduced when switching to spawn instead of shell on starting rails server.
OS: Fedora 18 64-bit (Linux) Ruby: ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux] Rails: 3.2.8 guard: 1.6.2 Guardfile (partial):