Question
Unicorn won't point towards other rails project
The unicorn server seems to be continuing to look at rails_project, despite the fact that I’ve edited it to point towards my own project (wll-rails-project).
I have followed
I have changed the unicorn log to point to my custom app
listen "unix:/run/DigitalOceanOneClick/unicorn.sock"
worker_processes 4
user "rails"
working_directory "/home/rails/wll-rails-app"
pid "/run/DigitalOceanOneClick/unicorn.pid"
stderr_path "/var/log/unicorn/unicorn.log"
stdout_path "/var/log/unicorn/unicorn.log"
and executed
service unicorn restart
but the unicorn log seems to keep referring to the orginal rails_project:
the unicorn log is:
I, [2017-04-24T02:08:11.716339 #7687] INFO – : worker=2 spawning…
I, [2017-04-24T02:08:11.722219 #10173] INFO – : worker=2 spawned pid=10173
I, [2017-04-24T02:08:11.762538 #10173] INFO – : Refreshing Gem list
Exception Bundler::GemNotFound' at /home/rails/rails_project/vendor/bundle/gems/bundler-1.14.6/lib/bundler/spec_set.rb:87 - Could not find tzinfo-1.2.3 in any of the sources
Bundler::GemNotFound’ at /home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/definition.rb:180 - Could not find tzinfo-1.2.3 in any of the sources
Exception
Exception `Bundler::GemNotFound’ at /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/coreext/kernelrequire.rb:55 - Could not find tzinfo-1.2.3 in any of the sources
Exception Bundler::GemNotFound' at /home/rails/wll-rails-app/config/application.rb:1 - Could not find tzinfo-1.2.3 in any of the sources
Bundler::GemNotFound’ at /home/rails/wll-rails-app/config/environment.rb:2 - Could not find tzinfo-1.2.3 in any of the sources
Exception
Exception `Bundler::GemNotFound’ at config.ru:4 - Could not find tzinfo-1.2.3 in any of the sources
E, [2017-04-24T02:08:11.863520 #10166] ERROR – : Could not find tzinfo-1.2.3 in any of the sources (Bundler::GemNotFound)
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/specset.rb:87:in `block in materialize’
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/specset.rb:80:in `map!’
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/specset.rb:80:in `materialize’
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/definition.rb:176:in specs'
specsfor’
/home/rails/rails_project/vendor/bundle/gems/bundler-1.14.6/lib/bundler/definition.rb:235:in
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/definition.rb:224:in requested_specs'
block in definitionmethod’
/home/rails/rails_project/vendor/bundle/gems/bundler-1.14.6/lib/bundler/runtime.rb:118:in
/home/rails/railsproject/vendor/bundle/gems/bundler-1.14.6/lib/bundler/runtime.rb:19:in setup'
setup’
/home/rails/rails_project/vendor/bundle/gems/bundler-1.14.6/lib/bundler.rb:100:in
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×