joelmoss / strano

Capistrano and Github sittin' in a tree...
http://developwithstyle.com
MIT License
579 stars 70 forks source link

railsless-deploy not working #48

Open andrewryno opened 11 years ago

andrewryno commented 11 years ago

I attempt to deploy a project that uses the railsless-deploy gem but get the following error:

cannot load such file -- railsless-deploy

Looking through other issues it should have been solved by adding the following to the Gemfile, but no luck:

gem 'railsless-deploy', :require => nil

It's installed within the gemset, so it's definitely there. Any ideas?

jimothyGator commented 11 years ago

Did you re-run bundle install after modifying the Gemfile?

andrewryno commented 11 years ago

Yup, here's the output after doing it again (to show it's installed):

± % bundle install                                                                                                                                                          !1211
Using rake (10.0.3) 
Using i18n (0.6.1) 
Using multi_json (1.5.0) 
Using activesupport (3.2.11) 
Using builder (3.0.4) 
Using activemodel (3.2.11) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.3) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.11) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.11) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.11) 
Using activeresource (3.2.11) 
Using addressable (2.2.7) 
Using airbrake (3.0.9) 
Using ansible (0.2.0) 
Using highline (1.6.15) 
Using net-ssh (2.6.2) 
Using net-scp (1.0.4) 
Using net-sftp (2.0.5) 
Using net-ssh-gateway (1.1.0) 
Using capistrano (2.13.5) 
Using capistrano_colors (0.5.5) 
Using capistrano_rsync_with_remote_cache (2.4.0) 
Using celluloid (0.10.0) 
Using chronic (0.6.7) 
Using coffee-script-source (1.2.0) 
Using execjs (1.3.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.7.6) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.2.11) 
Using coffee-rails (3.2.2) 
Using columnize (0.3.6) 
Using commonjs (0.2.5) 
Using connection_pool (0.9.1) 
Using crack (0.3.1) 
Using daemons (1.1.9) 
Using database_cleaner (0.7.2) 
Using debugger-ruby_core_source (1.1.5) 
Using debugger-linecache (1.1.2) 
Using debugger (1.2.2) 
Using delayed_job (3.0.2) 
Using diff-lcs (1.1.3) 
Using dotiw (1.1.1) 
Using eventmachine (1.0.0) 
Using factory_girl (3.0.0) 
Using factory_girl_rails (3.0.0) 
Using fakefs (0.4.0) 
Using multipart-post (1.1.5) 
Using faraday (0.7.6) 
Using faraday-stack (0.1.5) 
Using faraday_middleware (0.8.6) 
Using ffaker (1.14.0) 
Using ffi (1.0.11) 
Using grit (2.4.1) 
Using guard (1.0.1) 
Using bundler (1.2.3) 
Using guard-bundler (0.1.3) 
Using guard-rspec (0.7.0) 
Using has_scope (0.5.1) 
Using hashie (1.2.0) 
Using responders (0.9.1) 
Using inherited_resources (1.3.1) 
Using jquery-rails (2.0.2) 
Using kaminari (0.13.0) 
Using libv8 (3.3.10.4) 
Using therubyracer (0.10.2) 
Using less (2.1.0) 
Using less-rails (2.2.0) 
Using marked (1.2.2) 
Using mysql2 (0.3.11) 
Using newrelic_rpm (3.3.3) 
Using oauth2 (0.5.2) 
Using omniauth (1.0.3) 
Using omniauth-oauth2 (1.0.0) 
Using omniauth-github (1.0.1) 
Using open4 (1.3.0) 
Using permanent_records (2.1.2) 
Using rack-protection (1.2.0) 
Using rails (3.2.11) 
Using railsless-deploy (1.1.0) 
Using redis (2.2.2) 
Using redis-namespace (1.1.0) 
Using rspec-core (2.9.0) 
Using rspec-expectations (2.9.1) 
Using rspec-mocks (2.9.0) 
Using rspec (2.9.0) 
Using rspec-rails (2.9.0) 
Using sass (3.1.15) 
Using sass-rails (3.2.5) 
Using shoulda-matchers (1.0.0) 
Using sidekiq (0.11.1) 
Using simple_form (2.0.1) 
Using sinatra (1.3.2) 
Using temple (0.4.0) 
Using slim (1.2.0) 
Using sqlite3 (1.3.5) 
Using thin (1.5.0) 
Using twitter-bootstrap-rails (2.0.5) 
Using uglifier (1.2.4) 
Using vcr (2.0.1) 
Using webmock (1.8.5) 
Using whenever (0.7.3) 
Using yajl-ruby (1.1.0) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
jimothyGator commented 11 years ago

I remember having the same problem, but truthfully, I can't remember how I solved it. Do you run Strano with rvm or rbenv? I'm using rvm. Could it be that you bundle installed to a different Ruby version? Try running which ruby from the command prompt, and also from the start/init.d script, and compare the two

I've put my init.d script here. There's nothing rvm specific in it, but perhaps it'll be helpful. Note that you'll also have to add the sidekiq.rake task to your Strano lib/tasks/ directory. sidekiq.rake is also part of that Gist now.

That gist was missing some other needed changes. See instead my Strano fork and pull request.

jimothyGator commented 11 years ago

I believe this will solve it. Put the following in your Gemfile:

gem 'railsless-deploy', :require => nil

:require => nil is the key.

andrewryno commented 11 years ago

I already have that in my Gemfile. :\

I'm using rvm to manage the rubies.

± % which ruby
/Users/andrew/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
jimothyGator commented 11 years ago

Well so much for that idea! :) Though I develop on Mac, so far I've only run Strano on Ubuntu.

How are you starting Sidekiq and Strano? With bundle exec, I presume?

andrewryno commented 11 years ago

Yup, both with bundle exec. I may have to debug this further this weekend and see what I can't figure out when the job runs.

davidcollom commented 10 years ago

long shot but after bundle exec have you restarted sidekiq AND the application??