Aashish Kiran <[email protected]> wrote:
> Hi,
> I facing the following error, inspite of creating
> ~/apps/voice_rules/shared/log/unicorn.stderr.log.
> Can you help.
>
>
> $ bundle exec unicorn -c config/unicorn.rb
>
> /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
> `initialize': No such file or directory @ rb_sysopen -
> ~/apps/voice_rules/shared/log/unicorn.stderr.log (Errno::ENOENT)
I guess you have the literal "~/" in your config/unicorn.rb?
Instead of the "~/", you should probably have the value of
the HOME environment variable.
In other words, use:
stderr_path "#{ENV['HOME']}/apps/voice_rules/shared/log/unicorn.stderr.log"
Not this:
stderr_path "~/apps/voice_rules/shared/log/unicorn.stderr.log"
The "~/" is only evaluated to be the value of ENV['HOME']
by your shell (probably bash if you use a GNU/Linux system).
Most other tools (like unicorn) will interpret '~/' literally.
--
unsubscribe: [email protected]
archive: https://bogomips.org/unicorn-public/