What is wrong with my file?

When I try to start my unicorn server, I have the following stack trace: Can't figure out what's wrong with the rackup file? Why is it impossible to read?

sites@bck :~/fatfreecrm$ /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /bin/unicorn_rails -E -D production -c /home/sites/fatfreecrm/config/unicorn.rb /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn/configurator.rb:600:in `parse_rackup_file': rackup file (production) not readable (ArgumentError) from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn/configurator.rb:74:in `reload' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn/configurator.rb:65:in `initialize' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn/http_server.rb:102:in `new' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn/http_server.rb:102:in `initialize' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn.rb:30:in `new' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/lib/unicorn.rb:30:in `run' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /gems/unicorn-3.7.0/bin/unicorn_rails:208:in `<top (required)>' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /bin/unicorn_rails:19:in `load' from /home/sites/.rvm/gems/ ruby-1.9.2-p180@fatfreecrm /bin/unicorn_rails:19:in `<main>' 
+6
source share
1 answer

The problem is the order of your arguments. Try switching to -E and -D .

+7
source

Source: https://habr.com/ru/post/891188/


All Articles