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

Ignores present unicorn configuration files when daemonizing #25

Open
michaelfranzl opened this issue Jul 13, 2020 · 1 comment
Open

Comments

@michaelfranzl
Copy link

michaelfranzl commented Jul 13, 2020

Since about 10 years, rack is already daemonizing the process (using Process.daemon) when options[:daemonize] is set (e.g. when the -d flag is set in rails server), just before calling Rack::Handler::Unicorn.run (which unicorn-rails implements). Ruby's core Process.daemon changes the working directory to root ("/"). This is why this line will never find the configuration file:

elsif ::File.exist?("config/unicorn.rb")

@bmalets
Copy link

bmalets commented Jul 13, 2020

Have absolutely the same problem.

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

2 participants