-
Notifications
You must be signed in to change notification settings - Fork 109
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
couldn't find HOME environment #58
Comments
I even tried settting |
I was able to fix it by changing like 13: CONFIG_HOME = File.expand_path(ENV['XDG_CONFIG_HOME'] || '~/.config') to: CONFIG_HOME = File.expand_path(ENV['XDG_CONFIG_HOME'] || "#{ENV["HOME"]}/.config") |
Hi Andrew. Exception tells that you don't have Try following in console (it should raise the same exception): ENV.delete('HOME')
File.expand_path('~') And try to log value of |
I'm using Rails 4.1.5 and Ruby 2.1.2 |
If you run I understood the problem and I assume that it should be harmless to ignore exception when finding home/config directory, probably better to show warning. |
I agree, a warning would be great, but at the moment, I just need it to work. My script that runs it (under
CMD is the actual command that gets called when it starts... |
CMD="cd /data/web/my_site/production/current; env HOME=/dev/null bundle exec unicorn -D -c /data/web/my_site/production/shared/config/unicorn.rb -E production" |
I'll update my script to reflect your recommendation. |
Does deployer have a home folder: |
@anlek Please confirm that master fixes this issue for you, you should see a warning with «couldn't find HOME environment». |
@anlek Please reopen if needed. |
Hey, great work with this gem, however I'm having an issue when deploying it in Production (Ubuntu 14.04). I'm getting:
My user does have a home directory and when I run console, I get this:
Not sure what's happening.
The text was updated successfully, but these errors were encountered: