Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App's processes should exit when you change dir out of the Rails project #61

Closed
douglascamata opened this issue Feb 20, 2013 · 8 comments

Comments

@douglascamata
Copy link

It's said that the app's processes will only exit when the terminal is closed, but devs are quite often used to just cd out of a project and work on another. This need to be handled somehow or you'll need to open another shell (and lose more time there, the pwd, etc).

@senny
Copy link
Member

senny commented Feb 20, 2013

Is there a problem when the process lives on when you cd into another directory?

@douglascamata
Copy link
Author

It can live there forever, until I restart my computer, eating my
resources. And what if i work in several different rails projects? I
wouldn't like that.

On Wed, Feb 20, 2013 at 1:45 PM, Yves Senn notifications@github.com wrote:

Is there a problem when the process lives on when you cd into another
directory?


Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-13842141.

Douglas Camata
Graduando em Ciência da Computação (UENF)

Blog: http://douglascamata.net
Github: http://github.com/douglascamata
Twitter: @douglascamata http://twitter.com/douglascamata

http://twitter.com/douglascamataSkype: douglas_camata

Linux User #509211

@senny
Copy link
Member

senny commented Feb 20, 2013

I think it's good that spring can be picked up very easily without knowing how it works. The problem it tries to solve is very complex though and there will be situations where you need to know what actually happens. I think the situation you describe could be one of them...

lets wait what @jonleighton thinks.

@douglascamata
Copy link
Author

I think some sort of configuration of how much time the app's processes can live when I cd out of my app's folder can solve it. But it's just an idea.

@jonleighton
Copy link
Member

I can't immediately think of a way for us to detect when you cd out of the app's directory, so I think this would be hard to implement.

If you like, you can call spring stop to stop the processes.

You can also close your terminal and they will die automatically - no need to restart your machine.

So I am not really persuaded that we need this.

Cheers

@douglascamata
Copy link
Author

If there's a spring stop command, it's fine. But the README doesn't talk about it. It only makes clear that the processes will stop when the terminal is closed.

@jonleighton
Copy link
Member

Right, yeah that's missing from the docs. Care to write a patch? :)

@douglascamata
Copy link
Author

I'll do it! :D

On Wed, Feb 20, 2013 at 6:10 PM, Jon Leighton notifications@github.comwrote:

Right, yeah that's missing from the docs. Care to write a patch? :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-13856684.

Douglas Camata
Graduando em Ciência da Computação (UENF)

Blog: http://douglascamata.net
Github: http://github.com/douglascamata
Twitter: @douglascamata http://twitter.com/douglascamata

http://twitter.com/douglascamataSkype: douglas_camata

Linux User #509211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants