rvm/bundler/capistrano help

37 views
Skip to first unread message

Len Jaffe

unread,
May 14, 2012, 8:18:01 AM5/14/12
to colum...@googlegroups.com
I'm getting:'sh: bundle: not found' error on 'cap deploy' when capistrano attempts the 'bundle install'
despite the fact that the deploy user can see bundle when I ssh into the production server.

From the shell, the production user can see ruby, rvm, and bundle, but it can't see bundle when the deploy runs.

Is there a magic incantation I need,or should I abandon the rvm/bundler/capistrano automation and seek deployment automation elsewhere?

Thanks,
Len.

Travis Smith

unread,
May 14, 2012, 8:50:16 AM5/14/12
to colum...@googlegroups.com
I had an issue where I had to accept the .rvmrc file in the repo for
that user before stuff would work. Just had to CD into that directory
once.

We don't use Cap for deployments any more, we're on AWS and we just
have a boot script that loads the latest binaries. If we need to
deploy, we reboot. (We could in theory just run that script as well,
but that would take more work). Cap did work for us, when we used it.

-Travis
> --
> You received this message because you are subscribed to the Google Groups
> "Columbus Ruby Brigade" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/columbusrb/-/TL7gBI0umu0J.
> To post to this group, send email to colum...@googlegroups.com.
> To unsubscribe from this group, send email to
> columbusrb+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/columbusrb?hl=en.

Len Jaffe

unread,
May 14, 2012, 8:55:24 AM5/14/12
to colum...@googlegroups.com
On Mon, May 14, 2012 at 8:50 AM, Travis Smith <tra...@legomaster.net> wrote:
I had an issue where I had to accept the .rvmrc file in the repo for
that user before stuff would work. Just had to CD into that directory
once.
 
Thank you.

What goes in the .rvmrc? 


Len.

--
lenj...@jaffesystems.com   614-404-4214       Coming soon: volunteerable.com 
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Greenbar: Grubmaster: 2012-2009, Grub Asst: 2008, Trained: 2007.


Travis Smith

unread,
May 14, 2012, 9:01:09 AM5/14/12
to colum...@googlegroups.com
$ cat .rvmrc
rvm use 1.9.3@gemset --create
$

It just tells rvm what ruby version and gemset to use when you cd into
that directory. I think it's just shell commands, so in theory you
could stick anything in there.

-Travis
> --
> You received this message because you are subscribed to the Google Groups
> "Columbus Ruby Brigade" group.
Reply all
Reply to author
Forward
0 new messages