# Problem starting in Webrick server

**URL:** <https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662>\
**Category:** Rails\
**Created:** [September 17, 2009, 10:25am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662 "2009-09-17T10:25:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@maddy](https://www.ruby-forum.com/u/maddy)\
**Post date:** [September 17, 2009, 10:25am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662/1 "2009-09-17T10:25:49Z")

</div>

Hi,

I am learning Ruby on Rails and using a book as a guide. I am stuck  
at a particular chapter on Rails, where I am unable to start the  
Webrick server. But before going into the problem, let me give you a  
brief on the setup of Ruby on Rails in my system.

I have installed RoR ( I have installed InstantRails-2.0-win.zip.  
downloaded from [http://instantrails.rubyforge.org](http://instantrails.rubyforge.org).) set up in ‘D’  
directory and the path is something like D:\RoR. I had created a  
folder D:\rails\_projects where I had setup an application skeleton  
using the command (@command prompt),

D:\rails\_projects\>rails MyProj

This had created the application skeleton where the standard rails  
application directories were created.

Now, my problem is that, in the book it had mentioned that I can  
start the server by typing command,

ruby script/server Webrick

But I am receiving this message ----- \> ruby: No such file or  
directory – script/server (LoadError)

I believe I am at wrong directory location when I am giving this  
command. Can anybody let me know which directory location, I should be  
at when i am giving this command?

I hope I am being clear in stating my problem, but if I have missed  
anything or if more clarification is needed, please let me know.

Many Thanks!!  
Maddy

---

<div class="post-metadata">

**Author:** ![maddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@maddy](https://www.ruby-forum.com/u/maddy)\
**Post date:** [September 17, 2009, 10:34am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662/2 "2009-09-17T10:34:01Z")

</div>

On Sep 17, 10:23 am, maddy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> folder D:\rails\_projects where I had setup an application skeleton  
> ruby script/server Webrick
> 
> But I am receiving this message ----- \> ruby: No such file or  
> directory – script/server (LoadError)
> 
> I believe I am at wrong directory location when I am giving this  
> command. Can anybody let me know which directory location, I should be  
> at when i am giving this command?
> 
> I hope I am being clear in stating my problem, but if I have missed  
> anything or if more clarification is needed, please let me know.

I think you need to type “cd MyProj” before typing “ruby script/server  
Webrick”.

---

<div class="post-metadata">

**Author:** ![maddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@maddy](https://www.ruby-forum.com/u/maddy)\
**Post date:** [September 17, 2009, 11:32am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662/3 "2009-09-17T11:32:33Z")

</div>

2009/9/17 maddy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> directory and the path is something like D:\RoR. I had created a
> 
> Â ruby script/server Webrick

It is some time since I used InstantRails (setup a dual boot to Ubuntu  
and never looked back) but my memory is that IR has a menu item for  
starting the server, under Manage Apps or something. I also think  
that the application should be in the rails\_apps folder (or something)  
under your IR folder. Have a look through the IR docs.  
Try one of the supplied demo apps to check it is all working.  
I found IR certainly the easiest way to get Rails going on Windows but  
I think it is now several issues out of date. That is not a major  
issue as it is easy to update to the latest, though I forget the exact  
commands to enter at this point. Note then that the tutorial you are  
following may be out of date. The rails guides at  
[http://guides.rubyonrails.org/](http://guides.rubyonrails.org/) are excellent, start with Getting  
Started. This will, of course, assume you have an up to date rails  
installation.  
Remember to do all rails related activity within the IR environment.

I would also suggest considering upgrading to Ubuntu or similar, there  
will be additional learning curve but then you may, like me, wonder  
why you did not take the plunge earlier. A dual boot allows me to  
keep windows for the rare occasions when I need it and allows one to  
keep doing the critical stuff while picking up the new.

Colin

---

<div class="post-metadata">

**Author:** ![maddy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@maddy](https://www.ruby-forum.com/u/maddy)\
**Post date:** [September 18, 2009, 1:13am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662/4 "2009-09-18T01:13:17Z")

</div>

maddy wrote:

> ```
> Hi,
> 
> I am learning Ruby on Rails and using a book as a guide. I am stuck  
> at a particular chapter on Rails, where I am unable to start the  
> Webrick server. But before going into the problem, let me give you a  
> brief on the setup of Ruby on Rails in my system.
> 
> I have installed RoR ( I have installed InstantRails-2.0-win.zip.  
> downloaded from [http://instantrails.rubyforge.org](http://instantrails.rubyforge.org).)  
> set up in ‘D’  
> directory and the path is something like D:\RoR. I had created a  
> folder D:\rails\_projects where I had setup an application skeleton  
> using the command (@command prompt),
> 
> D:\rails\_projects\>rails MyProj
> 
> This had created the application skeleton where the standard rails  
> application directories were created.
> 
> Now, my problem is that, in the book it had mentioned that I can  
> start the server by typing command,
> 
> ruby script/server Webrick
> 
> But I am receiving this message ----- \> ruby: No such file or  
> directory – script/server (LoadError)
> 
> I believe I am at wrong directory location when I am giving this  
> command. Can anybody let me know which directory location, I should be  
> at when i am giving this command?
> 
> I hope I am being clear in stating my problem, but if I have missed  
> anything or if more clarification is needed, please let me know.
> 
> Many Thanks!!  
> Maddy
> ```

I will endorse everything Colin L. said.&nbsp; I use InstantRails (when I have to be on windows).&nbsp; You need to move your app to d:\ror\rails\_apps\MyProj  
After doing that the bring up InstantRails.exe and go to the I button it displays.&nbsp; Select manage rails applications.&nbsp; In that window select your app and tell it to start it with mongrel or webrick and it should bring it up.&nbsp; You will have to have created your database before doing this using whatever method your tutorial describes.  
  
Its all a lot faster and (to me) easier on Ubuntu but IR works.  
  
Norm  
  
--~--~---------~--~----~------------~-------~--~----~  
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.   
 To post to this group, send email to removed\_email\_address@domain.invalid   
 To unsubscribe from this group, send email to removed\_email\_address@domain.invalid   
 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en  
-~----------~----~----~----~------~----~------~--~---
