how to use with rvm

1 view
Skip to first unread message

millisami

unread,
Dec 15, 2009, 2:30:46 PM12/15/09
to Speedy Gem
Hi,
I liked speedy when I saw the screencast.
The problem is that I'm using rvm (on Jaunty) that states not to use
"sudo" while installing gems and its right what it says.
So, I installed the speedy with "gem install speedy" (without sudo)
and in the screencast you said to run "sudo speedy config-passenger".
When I do run, it says:

[~/rails_apps/devise_example (master)↑⚡] ➔ sudo speedy config-
passenger
sudo: speedy: command not found

The error is since I installed speedy without "sudo", the binary is
not recognized.
So, my concern is that if I do run the command "speedy config-
passenger", the config and deployment will not be complete coz "sudo"
is required to handle hosts, vhosts and apache restart, right??

MohamedAslam

unread,
Dec 15, 2009, 11:26:20 PM12/15/09
to Speedy Gem
Hi millisami,

First you need to install Speedy with "sudo" command. If not, Speedy
binary will not copy to the bin folder. You can only run "speedy" if
you have the binary.

If RVM doesn't allows to install gems with "sudo", try this method.

1. Type "sudo su" and give the password. Now your shell will run in
the privileged mode.
2. Now you can install Speedy with "sudo". Just type "gem install
speedy". - Since the shell already authenticated, necessary binaries
will copied to the necessary folders.
3. Now you can use "sudo speedy config-passenger"
Reply all
Reply to author
Forward
0 new messages