Frederick Cheung wrote:
> Having run bundle as root may well have left some directories owned by
> root.
>
> Where bundler tries to write files to depends on how its configured -
> (the .bundle/config file, if it exists may have some of these settings).
> In a production environment passing --deployment should result in
> everything being installed in your app's directory (or in whatever
> --path setting you have previously passed).
I have not ran bundle completely, but I guess it could have altered some
directories when I ran it the first time and hit Ctl+C while it was
still trying to download and after seeing the warning not to run as
root. I don't have a .bundle directory in the app directory or in my
user home directory. I do see a .bundler directory in my home folder,
but no config file, just cache. I cleaned it out and ran bundle update
again to find the folder recreated and references to ruby 1.9.1, which I
did install the Ubuntu package once but thought removed after reading
that is was broken and all examples I find suggest using rvm to install
ruby. I last used rvm to install ruby 1.9.3p392. I was trying to match
the version of the production server where I copied this app from. So it
seems something is messed up with versions. Also found I had the Ubuntu
version of rvm when I had also downloaded via curl.
Anyway, since I seem to have screwed this install up with no experience
setting up ruby and have learned a lot here and reading since my first
try, I decided to start over and completely remove ruby and rvm. I used
this to remove...
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
I installed all before as root, this time as my own user using sudo and
this to setup ruby with rvm except I did line 7 as 'rvm install
ruby-1.9.3-p392' and adjusted line 8 with same version:
https://www.linuxcasts.net/casts/ubuntu/1004.shtml
My question now is if rubygems current is acceptable? I'm not sure what
version the production server is running, should that be checked and
matched as well?
-- Robert