RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: brandonjmckay
I keep getting this error when trying to run the /etc/init.d/unicorn start script:
/usr/share/nginx/www/rails_apps/symbolfy/bin/unicorn:13:in `require': no such file to load -- rubygems (LoadError)
But I don't have any trouble running:
bundle exec unicorn -c config/unicorn.rb -D
Can anyone help point me in the right direction?
I'm finding Capistrano a little daunting, and am trying to set up NGINX and Unicorn on my VPS.
Unicorn_rails works like a charm right now when called from the app_root, but then I'm stuck with my terminal open.
Can't get the unicorn command to work, let alone start it up on VPS reboot. I get:
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/lib/unicorn/configurator.rb:634:in `parse_rackup_file': rackup file (config.ru) not readable (ArgumentError)
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/lib/unicorn/configurator.rb:77:in `reload'
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/lib/unicorn/configurator.rb:68:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/lib/unicorn/http_server.rb:108:in `new'
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/lib/unicorn/http_server.rb:108:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/bin/unicorn:126:in `new'
from /usr/local/rvm/gems/ruby-1.9.3-p385/gems/unicorn-4.6.0/bin/unicorn:126:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p385/bin/unicorn:19:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p385/bin/unicorn:19:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'
Also, I keep hearing that unicorn is supposed to create a /tmp/unicorn.pid file, but I can only ever find /tmp/server.pid is that the right one?
Can Anyone help on that?
Are you sure you have the rails gem installed? Or ruby?
If it can't find the rails command then one of those is probably missing I would think.
I think you'd want to try rbenv or rvm to install some rubies, and then do:
gem install rails
What I'm really having a problem with is embeds_one associations. Can't find any tutorials or docs on it. I can find enough on embeds_many but not what I need.
Anyone have a lead?
How would you add a :destroy function to the embedded comments?
Also, any examples on doing this with Carrierwave?
I'm trying to use mongoids versioning system (also looking at mongoid-history) but am having difficulty figuring out a basic undo and list of versions.
Are there any good tutorials out there on this?
Having difficulty creating delete and edit links for the polymorphic object.
Anyone know of a good resource on that?
You are the bomb.
That solved my issues with Redcarpet.