Elliot,
Your server doesn't appear to have Rubygems installed. You can get, and
install it from the rubygems site, installation really is a snap, give that
a shot (on your server) -- and post back here.

- Lee

2009/2/20 elliottg <x...@simplecircle.net>

>
> Hello,
>
> This is my first post here. I am new to Rails as well as working in
> Bash.
>
> I am trying to deploy a Rails app that is frozen to v2.1.2 to a
> MediaTemple gridserver. The app I'm deploying is the Redmine  OS
> project management program. The app runs fine on my OS X 10.5 machine
> and mysql as the dev environment.
>
> I went through this post:
>
> http://groups.google.com/group/capistrano/browse_thread/thread/dde29bb6f454e463/2d2382874502c475?lnk=gst&q=no+such+file+to+load+--+rubygems+(LoadError)#2d2382874502c475
>
> As well as tons of Google searches and trying stuff out. Still, I
> couldn't solve the problem. On my MT shared server I don't root access
> or write access to .bashrc etc... beyond that, I am foggy on what some
> of my paths should even be and where to set them.
>
> The cap deploy:set up worked fine. Then I ran cap deploy:cold, all the
> files went over fine from my git repo which is on the target deploy
> box. Below is the error I always get. I have the same problem running
> cap deploy:migrate as well.
>
>
>  * executing "cd /home/10838/containers/rails/redmine/releases/
> 20090220170452; PATH=$PATH:/home/10838/data/rubygems/bin:/home/10838/
> data/rubygems/gems/bin RUBYLIB=/home/10838/data/rubygems/local/lib/
> site_ruby/1.8 GEM_HOME=/home/10838/data/rubygems/gems rake
> RAILS_ENV=production  db:migrate"
>    servers: ["simplecircle.net"]
>    [simplecircle.net] executing command
> *** [err :: simplecircle.net] /home/10838/data/rubygems/gems/bin/rake:
> 9:in `require': no such file to load -- rubygems (LoadError)
> *** [err :: simplecircle.net] from /home/10838/data/rubygems/gems/bin/
> rake:9
>    command finished
> failed: "sh -c \"cd /home/10838/containers/rails/redmine/releases/
> 20090220170452; PATH=\\$PATH:/home/10838/data/rubygems/bin:/home/10838/
> data/rubygems/gems/bin RUBYLIB=/home/10838/data/rubygems/local/lib/
> site_ruby/1.8 GEM_HOME=/home/10838/data/rubygems/gems rake
> RAILS_ENV=production  db:migrate\"" on simplecircle.net
>
>
> And here's my deploy.rb
> NOTE: I tried some setting default_run_options[:env] values in
> deploy.rb but to no effect. you can see them commented out. I am not
> sure if those two path are even correct.
>
>
> require 'mt-capistrano'
>
> set :site,         "10838"
> set :application,  "redmine"
> set :webpath,      "projects.simplecircle.net"
> set :domain,       "simplecircle.net"
> set :user,         "serverad...@simplecircle.net"
> set :password,     "monkey75"
>
>
> # default_run_options[:env] = { "PATH" => "$PATH:/home/10838/data/
> rubygems/bin:/home/10838/data/rubygems/gems/bin",
> #                               "RUBYLIB" => "/home/10838/data/
> rubygems/local/lib/site_ruby/1.8:/home/10838/data/rubygems/lib"}
>
> set :scm, :git
> set :repository,  "http://git.simplecircle.net/redmine.git";
>
> set :deploy_to,  "/home/#{site}/containers/rails/#{application}"
>
> set :rails_env,    "production"
> set :use_sudo, false
>
> role :web, "#{domain}"
> role :app, "#{domain}"
> role :db,  "#{domain}", :primary => true
>
>
>
> THANKS for helping me out here.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
capistrano-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to