-
Notifications
You must be signed in to change notification settings - Fork 46
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
Daemonizing\Forking #28
Comments
Why do we need this ? |
Because unlike rails (Ruby), you cannot install a Crystal addon into apache or nginx , which means that you can only use Crystal's HTTP::Server , this in turn means that we need an option to start our programs as a service in the background without the need to relay upon VT environment and so we can initiate it via Systemd or init . for all of those we need the bin to be able to start as a service |
Actually we don't install any addon to apache / nginx in Ruby world. We mostly use Nginx / Apache as a reverse proxy and static file server other than that we have Ruby web servers (Puma, Thin, Unicorn e.g) which handles the incoming requests. |
@sdogruyol Thats cool to know, but it doesn't change the fact that we need to add a fork or |
Docker and mac LaunchAgents only work if you run in the foreground. I agree that this used to be the only way to run, but now a days I wonder. |
We need to add some option to "run in the background".
we can use
fork
or some internal design to this this thing.
The text was updated successfully, but these errors were encountered: