Forum: Ruby on Rails How to go back to using webrick default server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mrmaster M. (Guest)
on 2008-11-30 05:12
Hi,

I've installed mongrel to check it out and want to go back to using
webrick as default when i type server/script to run my server. How can I
do this? I know that I can just type server/script webrick but i'd
prefer to have it as default.

Thanks
Tom L. (Guest)
on 2008-11-30 05:29
(Received via mailing list)
Mrmaster M. escreveu:
> Hi,
>
> I've installed mongrel to check it out and want to go back to using
> webrick as default when i type server/script to run my server. How can I
> do this? I know that I can just type server/script webrick but i'd
> prefer to have it as default.
>
> Thanks
>
you can 'gem remove mongrel'
or make a alias if you are using unix:
alias "webrick=./script/server webrick"
(in last case, add also it to your ~/.profile:
echo ' alias "webrick=./script/server webrick" ' >> ~/.profile)


Tom L.
Mrmaster M. (Guest)
on 2008-11-30 08:19
Tom L. wrote:
> Mrmaster M. escreveu:
>> Hi,
>>
>> I've installed mongrel to check it out and want to go back to using
>> webrick as default when i type server/script to run my server. How can I
>> do this? I know that I can just type server/script webrick but i'd
>> prefer to have it as default.
>>
>> Thanks
>>
> you can 'gem remove mongrel'
> or make a alias if you are using unix:
> alias "webrick=./script/server webrick"
> (in last case, add also it to your ~/.profile:
> echo ' alias "webrick=./script/server webrick" ' >> ~/.profile)
>
>
> Tom L.

for some reason i can't run the remove command. When i do i get

mrmaster@mrmaster-laptop:~/Desktop$ gem remove mongrel
ERROR:  While executing gem ... (RuntimeError)
    Unknown command remove

how can i fix this?
Davo (Guest)
on 2008-11-30 09:02
(Received via mailing list)
Try 'gem uninstall mongrel'
( if you have more than one version you will be asked which one )
Dave


On Nov 30, 3:19 pm, Mrmaster M. <rails-mailing-l...@andreas-
pixelhandler (Guest)
on 2008-11-30 11:25
(Received via mailing list)
Or, just start your app: ruby script/server webrick

On Nov 29, 7:12 pm, Mrmaster M. <rails-mailing-l...@andreas-
Mrmaster M. (Guest)
on 2008-11-30 17:47
Davo wrote:
> Try 'gem uninstall mongrel'
> ( if you have more than one version you will be asked which one )
> Dave
>
>
> On Nov 30, 3:19�pm, Mrmaster M. <rails-mailing-l...@andreas-

With the unistall command I get this error:
mrmaster@mrmaster-laptop:~/Desktop$ gem uninstall mongrel
ERROR:  While executing gem ... (Gem::InstallError)
    Unknown gem mongrel >= 0

Should I try to reinstall ruby since non of the commands are working?
Bobnation (Guest)
on 2008-11-30 18:01
(Received via mailing list)
I'm just curious as to why you want to remove Mongrel, just a general
question.

I would really add +1 to the idea of just adding in an alias in
your .bashrc file just to make the server easier to start.

On Nov 30, 9:47 am, Mrmaster M. <rails-mailing-l...@andreas-
Mrmaster M. (Guest)
on 2008-11-30 18:06
Bobnation wrote:
> I'm just curious as to why you want to remove Mongrel, just a general
> question.
>
> I would really add +1 to the idea of just adding in an alias in
> your .bashrc file just to make the server easier to start.
>
> On Nov 30, 9:47�am, Mrmaster M. <rails-mailing-l...@andreas-

I really don't know the difference between mongrel and webrick so it is
not a technical dislike. I just started out using webrick and wanted to
continue using it but more importantly it seems that remove/unistall
commands in my gem is broken and I would like to fix them or know how to
fix them for the future problems that might occur.
Bobnation (Guest)
on 2008-11-30 18:19
(Received via mailing list)
Can you run gem update and that works fine? What gem version are you
using?

On Nov 30, 10:06 am, Mrmaster M. <rails-mailing-l...@andreas-
Mrmaster M. (Guest)
on 2008-11-30 21:43
Bobnation wrote:
> Can you run gem update and that works fine? What gem version are you
> using?
>
> On Nov 30, 10:06�am, Mrmaster M. <rails-mailing-l...@andreas-

I used gem update and gem update --system and both said nothing to
update. I think i'm running gems 1.3.1 but i'm not sure since i can't
find the check version command.
Frederick C. (Guest)
on 2008-11-30 22:00
(Received via mailing list)
If you're running OS X 10.5 and using the system provided install of
ruby, the way it is setup means that gem doesn't know how to remove
the gems that ship with Leopard (ie the ones in /System/Library/...)

Fred

On Nov 30, 7:43 pm, Mrmaster M. <rails-mailing-l...@andreas-
Mrmaster M. (Guest)
on 2008-11-30 22:02
Frederick C. wrote:
> If you're running OS X 10.5 and using the system provided install of
> ruby, the way it is setup means that gem doesn't know how to remove
> the gems that ship with Leopard (ie the ones in /System/Library/...)
>
> Fred
>
> On Nov 30, 7:43�pm, Mrmaster M. <rails-mailing-l...@andreas-

I'm using ubuntu 8.10 as mentioned in my first post :).
Mrmaster M. (Guest)
on 2008-11-30 22:04
Frederick C. wrote:
> If you're running OS X 10.5 and using the system provided install of
> ruby, the way it is setup means that gem doesn't know how to remove
> the gems that ship with Leopard (ie the ones in /System/Library/...)
>
> Fred
>
> On Nov 30, 7:43�pm, Mrmaster M. <rails-mailing-l...@andreas-

Sorry that was a different post, well anyway I'm using ubuntu 8.10 with

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.7)
rails (2.2.2)
rake (0.8.3)
This topic is locked and can not be replied to.