rails / spring

Rails application preloader
MIT License
2.8k stars 341 forks source link

Allow to actually daemonize Spring #343

Open p0deje opened 10 years ago

p0deje commented 10 years ago

Currently, if you are using Spring with Vagrant, it's not very convenient. For example, if I ssh into Vagrant box and run springified command, spring keep running until SSH session is terminated. So if for some reason I disconnect and reconnect, Spring will have to be started once again.

It would be great if there was any way to tell Spring to keep running (like nohup/daemon) even when terminal session is ended.

I am ready to implement this, but need some guidance.

jstrater commented 10 years ago

@p0deje You can actually use nohup as a workaround. Run

$ nohup spring

to start up a Spring server that keeps running even after you close your Vagrant ssh session. Since Spring detects the running server via PID file, subsequent commands will be able to use your nohup'd server.