Message from discussion
Weird problem "uninitialized constant Capistrano"
Date: Sun, 15 Apr 2012 06:31:53 -0700 (PDT)
From: LuisRuby <alfamemo...@gmail.com>
To: rubyonrails-talk@googlegroups.com
Message-ID: <31876923.1980.1334496713368.JavaMail.geo-discussion-forums@ynlp3>
In-Reply-To: <1063248.1974.1334496274743.JavaMail.geo-discussion-forums@ynlp3>
References: <18585111.1684.1334460284931.JavaMail.geo-discussion-forums@ynjc2>
<1063248.1974.1334496274743.JavaMail.geo-discussion-forums@ynlp3>
Subject: Re: Weird problem "uninitialized constant Capistrano"
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_1978_19576472.1334496713365"
------=_Part_1978_19576472.1334496713365
Content-Type: multipart/alternative;
boundary="----=_Part_1979_20561398.1334496713365"
------=_Part_1979_20561398.1334496713365
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
WOW! It worked!
It was exactly what you said!
This was a newbie question!
Thank you very, very much!
Em domingo, 15 de abril de 2012 10h24min34s UTC-3, LuisRuby escreveu:
>
>
>
> Em domingo, 15 de abril de 2012 00h24min44s UTC-3, LuisRuby escreveu:
>>
>> Hi friends!
>>
>> After hours of hard work searching for a solution, I appeal to the
>> community to help me.
>> I'm using Rails 3.2.3, Postgresql, RVM, and running Ubuntu Server 11.10
>> in my own server machine.
>> The command "cap deploy:check" returns:
>>
>> You appear to have all necessary dependencies installed
>>
>>
>> ------------------------------------------------------------------------------------------------------------
>> Gemfile:
>> source 'https://rubygems.org'
>> gem 'rails', '3.2.3'
>> gem 'pg'
>> gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
>> gem 'kaminari'
>> gem 'factory_girl_rails'
>> gem 'paperclip', '~> 3.0'
>>
>> group :assets do
>> gem 'sass-rails', '~> 3.2.3'
>> gem 'coffee-rails', '~> 3.2.1'
>> gem 'uglifier', '>= 1.0.3'
>> end
>> gem 'jquery-rails'
>>
>> group :development do
>> gem 'rspec-rails'
>> gem 'capistrano'
>> end
>>
>> gem 'rvm-capistrano'
>>
>>
>> -------------------------------------------------------------------------------
>> Capfile:
>> load 'deploy/assets'
>> Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each {
>> |plugin| load(plugin) }
>> load 'config/deploy'
>>
>>
>> -------------------------------------------------------------------------------
>> deploy.rb:
>> require "bundler/capistrano"
>> require "rvm/capistrano"
>> set :rvm_ruby_string, '1.9.3'
>> set :application, "digifoto"
>> set :repository, "g...@github.com:xxxxxxxx/digifoto.git"
>> set :branch, "production"
>>
>> set :scm, :git
>> set :user, "digifoto.com"
>> set :deploy_to, "/home/digifoto.com/apps/#{application}<http://digifoto.com/apps/#%7Bapplication%7D>
>> "
>> set :deploy_via, :remote_cache
>>
>> set :use_sudo, false
>> set :keep_releases, 3
>>
>> role :web, "xxx.xx.xx.xx" # Your HTTP server,
>> Apache/etc
>> role :app, "xxx.xx.xx.xx" # This may be the same
>> as your `Web` server
>> role :db, "xxx.xx.xx.xx", :primary => true # This is where Rails
>> migrations will run
>>
>> set :port, 22
>>
>> namespace :deploy do
>> task :start do ; end
>> task :stop do ; end
>> task :restart, :roles => :app, :except => { :no_release => true } do
>> run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
>> end
>> end
>>
>>
>> ------------------------------------------------------------------------------------------
>>
>> The command "cap deploy:setup" works fine but "cap deploy:migrations" end
>> up with this error:
>>
>> rake aborted!
>> *** [err :: xxx.xx.xx.xx] uninitialized constant Capistrano
>> *** [err :: xxx.xx.xx.xx]
>> *** [err :: xxx.xx.xx.xx] (See full trace by running task with --trace)
>> command finished in 4130ms
>> failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.3' -c 'cd
>> /home/digifoto.com/apps/digifoto/releases/20120415025916 && bundle exec
>> rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on
>> xxx.xx.xx.xx
>>
>> I tried many things, like run the command: "bundle exec rake
>> assets:clean" and deleting the line "//= require_tree" from
>> app/assets/javascripts/application.js but nothing works!
>> Any help will be much appreciated!
>>
>>
>>
>>
>>
> Em domingo, 15 de abril de 2012 00h24min44s UTC-3, LuisRuby escreveu:
>>
>> Hi friends!
>>
>> After hours of hard work searching for a solution, I appeal to the
>> community to help me.
>> I'm using Rails 3.2.3, Postgresql, RVM, and running Ubuntu Server 11.10
>> in my own server machine.
>> The command "cap deploy:check" returns:
>>
>> You appear to have all necessary dependencies installed
>>
>>
>> ------------------------------------------------------------------------------------------------------------
>> Gemfile:
>> source 'https://rubygems.org'
>> gem 'rails', '3.2.3'
>> gem 'pg'
>> gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
>> gem 'kaminari'
>> gem 'factory_girl_rails'
>> gem 'paperclip', '~> 3.0'
>>
>> group :assets do
>> gem 'sass-rails', '~> 3.2.3'
>> gem 'coffee-rails', '~> 3.2.1'
>> gem 'uglifier', '>= 1.0.3'
>> end
>> gem 'jquery-rails'
>>
>> group :development do
>> gem 'rspec-rails'
>> gem 'capistrano'
>> end
>>
>> gem 'rvm-capistrano'
>>
>>
>> -------------------------------------------------------------------------------
>> Capfile:
>> load 'deploy/assets'
>> Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each {
>> |plugin| load(plugin) }
>> load 'config/deploy'
>>
>>
>> -------------------------------------------------------------------------------
>> deploy.rb:
>> require "bundler/capistrano"
>> require "rvm/capistrano"
>> set :rvm_ruby_string, '1.9.3'
>> set :application, "digifoto"
>> set :repository, "g...@github.com:xxxxxxxx/digifoto.git"
>> set :branch, "production"
>>
>> set :scm, :git
>> set :user, "digifoto.com"
>> set :deploy_to, "/home/digifoto.com/apps/#{application}<http://digifoto.com/apps/#%7Bapplication%7D>
>> "
>> set :deploy_via, :remote_cache
>>
>> set :use_sudo, false
>> set :keep_releases, 3
>>
>> role :web, "xxx.xx.xx.xx" # Your HTTP server,
>> Apache/etc
>> role :app, "xxx.xx.xx.xx" # This may be the same
>> as your `Web` server
>> role :db, "xxx.xx.xx.xx", :primary => true # This is where Rails
>> migrations will run
>>
>> set :port, 22
>>
>> namespace :deploy do
>> task :start do ; end
>> task :stop do ; end
>> task :restart, :roles => :app, :except => { :no_release => true } do
>> run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
>> end
>> end
>>
>>
>> ------------------------------------------------------------------------------------------
>>
>> The command "cap deploy:setup" works fine but "cap deploy:migrations" end
>> up with this error:
>>
>> rake aborted!
>> *** [err :: xxx.xx.xx.xx] uninitialized constant Capistrano
>> *** [err :: xxx.xx.xx.xx]
>> *** [err :: xxx.xx.xx.xx] (See full trace by running task with --trace)
>> command finished in 4130ms
>> failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.3' -c 'cd
>> /home/digifoto.com/apps/digifoto/releases/20120415025916 && bundle exec
>> rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on
>> xxx.xx.xx.xx
>>
>> I tried many things, like run the command: "bundle exec rake
>> assets:clean" and deleting the line "//= require_tree" from
>> app/assets/javascripts/application.js but nothing works!
>> Any help will be much appreciated!
>>
>>
>>
>>
>>
------=_Part_1979_20561398.1334496713365
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
WOW! It worked!<br>It was exactly what you said!<br>This was a newbie quest=
ion!<br><br>Thank you very, very much!<br><br><br>Em domingo, 15 de abril d=
e 2012 10h24min34s UTC-3, LuisRuby escreveu:<blockquote class=3D"gmail_quo=
te" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;paddi=
ng-left: 1ex;"><br><br>Em domingo, 15 de abril de 2012 00h24min44s UTC-3, L=
uisRuby escreveu:<blockquote class=3D"gmail_quote" style=3D"margin:0;margi=
n-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi friends!<br><b=
r>After hours of hard work searching for a solution, I appeal to the commun=
ity to help me.<br>I'm using Rails 3.2.3, Postgresql, RVM, and running Ubun=
tu Server 11.10 in my own server machine.<br>The command "cap deploy:check"=
returns:<br><br>You appear to have all necessary dependencies installed<br=
><br>------------------------------<wbr>------------------------------<wbr>=
------------------------------<wbr>------------------<br>Gemfile:<br>source=
'<a href=3D"https://rubygems.org" target=3D"_blank">https://rubygems.org</=
a>'<br>gem 'rails', '3.2.3'<br>gem 'pg'<br>gem 'annotate', :git =3D> 'gi=
t://<a href=3D"http://github.com/ctran/annotate_models.git" target=3D"_blan=
k">github.com/ctran/<wbr>annotate_models.git</a>'<br>gem 'kaminari'<br>gem =
'factory_girl_rails'<br>gem 'paperclip', '~> 3.0'<br><br>group :assets d=
o<br> gem 'sass-rails', '~> 3.2.3'<br> gem 'coff=
ee-rails', '~> 3.2.1'<br> gem 'uglifier', '>=3D 1.0.3'<br>end<b=
r>gem 'jquery-rails'<br><br>group :development do<br> gem 'rspec-rail=
s'<br> gem 'capistrano'<br>end<br><br>gem 'rvm-capistrano'<br><br>---=
---------------------------<wbr>------------------------------<wbr>--------=
-----------<br>Capfile:<br>load 'deploy/assets'<br>Dir['vendor/gems/*/recip=
es/*.<wbr>rb','vendor/plugins/*/recipes/<wbr>*.rb'].each { |plugin| load(pl=
ugin) }<br>load 'config/deploy'<br><br>------------------------------<wbr>-=
-----------------------------<wbr>-------------------<br>deploy.rb:<br>requ=
ire "bundler/capistrano"<br>require "rvm/capistrano" <br>set :rvm_rub=
y_string, '1.9.3' <br>set :application, "digifoto"<br>set :repository, =
; "g...@github.com:xxxxxxxx/<wbr>digifoto.git" <br>set :branch, "production"=
<br><br>set :scm, :git<br>set :user, "<a href=3D"http://digifoto.com" targe=
t=3D"_blank">digifoto.com</a>"<br>set :deploy_to, "/home/<a href=3D"http://=
digifoto.com/apps/#%7Bapplication%7D" target=3D"_blank">digifoto.com/apps/#=
{<wbr>application}</a>"<br>set :deploy_via, :remote_cache<br><br>set :use_s=
udo, false<br>set :keep_releases, 3<br><br>role :web, "xxx.xx.xx.xx" &=
nbsp; &nbs=
p; <wbr> #=
Your HTTP server, Apache/etc<br>role :app, "xxx.xx.xx.xx"  =
; &n=
bsp;<wbr> # This may =
be the same as your `Web` server<br>role :db, "xxx.xx.xx.xx", :primar=
y =3D> true # This is where Rails migrations will run<br><br>set :port, =
22<br><br>namespace :deploy do<br> task :start do ; end<br> tas=
k :stop do ; end<br> task :restart, :roles =3D> :app, :except =3D&=
gt; { :no_release =3D> true } do<br> run "#{try_sudo} touch #{File=
.join(current_path,'tmp'<wbr>,'restart.txt')}"<br> end<br>end<br><br>=
------------------------------<wbr>------------------------------<wbr>-----=
-------------------------<br><br>The command "cap deploy:setup" works fine =
but "cap deploy:migrations" end up with this error:<br><br>rake aborted!<br=
>*** [err :: xxx.xx.xx.xx] uninitialized constant Capistrano<br>*** [err ::=
xxx.xx.xx.xx] <br>*** [err :: xxx.xx.xx.xx] (See full trace by running tas=
k with --trace)<br> command finished in 4130ms<br>failed:=
"rvm_path=3D$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.3' -c 'cd /home/<a h=
ref=3D"http://digifoto.com/apps/digifoto/releases/20120415025916" target=3D=
"_blank">digifoto.com/apps/<wbr>digifoto/releases/<wbr>20120415025916</a> &=
amp;& bundle exec rake RAILS_ENV=3Dproduction RAILS_GROUPS=3Dassets ass=
ets:precompile'" on xxx.xx.xx.xx<br><br>I tried many things, like run the c=
ommand: "bundle exec rake assets:clean" and deleting the line "//=3D requir=
e_tree" from app/assets/javascripts/<wbr>application.js but nothing works!<=
br>Any help will be much appreciated!<br><br><br><br><br></blockquote><br>E=
m domingo, 15 de abril de 2012 00h24min44s UTC-3, LuisRuby escreveu:<block=
quote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left=
:1px #ccc solid;padding-left:1ex">Hi friends!<br><br>After hours of hard wo=
rk searching for a solution, I appeal to the community to help me.<br>I'm u=
sing Rails 3.2.3, Postgresql, RVM, and running Ubuntu Server 11.10 in my ow=
n server machine.<br>The command "cap deploy:check" returns:<br><br>You app=
ear to have all necessary dependencies installed<br><br>-------------------=
-----------<wbr>------------------------------<wbr>------------------------=
------<wbr>------------------<br>Gemfile:<br>source '<a href=3D"https://rub=
ygems.org" target=3D"_blank">https://rubygems.org</a>'<br>gem 'rails', '3.2=
.3'<br>gem 'pg'<br>gem 'annotate', :git =3D> 'git://<a href=3D"http://gi=
thub.com/ctran/annotate_models.git" target=3D"_blank">github.com/ctran/<wbr=
>annotate_models.git</a>'<br>gem 'kaminari'<br>gem 'factory_girl_rails'<br>=
gem 'paperclip', '~> 3.0'<br><br>group :assets do<br> gem 'sass-ra=
ils', '~> 3.2.3'<br> gem 'coffee-rails', '~> 3.2.1'=
<br> gem 'uglifier', '>=3D 1.0.3'<br>end<br>gem 'jquery-rails'<br>=
<br>group :development do<br> gem 'rspec-rails'<br> gem 'capist=
rano'<br>end<br><br>gem 'rvm-capistrano'<br><br>---------------------------=
---<wbr>------------------------------<wbr>-------------------<br>Capfile:<=
br>load 'deploy/assets'<br>Dir['vendor/gems/*/recipes/*.<wbr>rb','vendor/pl=
ugins/*/recipes/<wbr>*.rb'].each { |plugin| load(plugin) }<br>load 'config/=
deploy'<br><br>------------------------------<wbr>-------------------------=
-----<wbr>-------------------<br>deploy.rb:<br>require "bundler/capistrano"=
<br>require "rvm/capistrano" <br>set :rvm_ruby_string, '1.9.3' <br>se=
t :application, "digifoto"<br>set :repository, "g...@github.com:xxxxxx=
xx/<wbr>digifoto.git" <br>set :branch, "production"<br><br>set :scm, :git<b=
r>set :user, "<a href=3D"http://digifoto.com" target=3D"_blank">digifoto.co=
m</a>"<br>set :deploy_to, "/home/<a href=3D"http://digifoto.com/apps/#%7Bap=
plication%7D" target=3D"_blank">digifoto.com/apps/#{<wbr>application}</a>"<=
br>set :deploy_via, :remote_cache<br><br>set :use_sudo, false<br>set :keep_=
releases, 3<br><br>role :web, "xxx.xx.xx.xx" &=
nbsp; <wbr> =
; # Your HTTP server, Apach=
e/etc<br>role :app, "xxx.xx.xx.xx"  =
; <wbr> &nb=
sp; # This may be the same as your `Web=
` server<br>role :db, "xxx.xx.xx.xx", :primary =3D> true # This is=
where Rails migrations will run<br><br>set :port, 22<br><br>namespace :dep=
loy do<br> task :start do ; end<br> task :stop do ; end<br>&nbs=
p; task :restart, :roles =3D> :app, :except =3D> { :no_release =3D>=
; true } do<br> run "#{try_sudo} touch #{File.join(current_path,'tmp'=
<wbr>,'restart.txt')}"<br> end<br>end<br><br>------------------------=
------<wbr>------------------------------<wbr>-----------------------------=
-<br><br>The command "cap deploy:setup" works fine but "cap deploy:migratio=
ns" end up with this error:<br><br>rake aborted!<br>*** [err :: xxx.xx.xx.x=
x] uninitialized constant Capistrano<br>*** [err :: xxx.xx.xx.xx] <br>*** [=
err :: xxx.xx.xx.xx] (See full trace by running task with --trace)<br> =
; command finished in 4130ms<br>failed: "rvm_path=3D$HOME/.rvm/=
$HOME/.rvm/bin/rvm-shell '1.9.3' -c 'cd /home/<a href=3D"http://digifoto.c=
om/apps/digifoto/releases/20120415025916" target=3D"_blank">digifoto.com/ap=
ps/<wbr>digifoto/releases/<wbr>20120415025916</a> && bundle exec ra=
ke RAILS_ENV=3Dproduction RAILS_GROUPS=3Dassets assets:precompile'" on xxx.=
xx.xx.xx<br><br>I tried many things, like run the command: "bundle exec rak=
e assets:clean" and deleting the line "//=3D require_tree" from app/assets/=
javascripts/<wbr>application.js but nothing works!<br>Any help will be much=
appreciated!<br><br><br><br><br></blockquote></blockquote>
------=_Part_1979_20561398.1334496713365--
------=_Part_1978_19576472.1334496713365--