# How to start a rails application w/out using "rails" command

**URL:** <https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656>\
**Category:** Rails\
**Created:** [September 5, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656 "2006-09-05T23:05:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 5, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/1 "2006-09-05T23:05:32Z")

</div>

Hello,

I’m importing a project and want to use webrick to look at things  
locally, but i’m forced to setup a blank project using “rails” command  
in order for webrick to boot. How do i get around this?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 5, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/2 "2006-09-05T23:50:41Z")

</div>

Try to use mongrel instead.

gem install mongrel

and then in the project root type.  
mongrel\_rails start

On 9/5/06, will [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

## –

Jon Gretar B.  
[http://www.jongretar.net/](http://www.jongretar.net/)

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 5, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/3 "2006-09-05T23:54:42Z")

</div>

On Tue, Sep 05, 2006, will wrote:

> I’m importing a project and want to use webrick to look at things  
> locally, but i’m forced to setup a blank project using “rails” command  
> in order for webrick to boot. How do i get around this?

What error do you get when you try to run script/server without setting  
up a new rails project?

My guess is that it’s either not finding the database.yml or the  
shebangs (#!/usr/…) are wrong in the script/\* files.

Let us know what the error is and we can go from there.

Ben

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 6, 2006, 12:25am UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/4 "2006-09-06T00:25:45Z")

</div>

Ben B. wrote:

> On Tue, Sep 05, 2006, will wrote:
> 
> > I’m importing a project and want to use webrick to look at things  
> > locally, but i’m forced to setup a blank project using “rails” command  
> > in order for webrick to boot. How do i get around this?
> 
> What error do you get when you try to run script/server without setting  
> up a new rails project?
> 
> My guess is that it’s either not finding the database.yml or the  
> shebangs (#!/usr/…) are wrong in the script/\* files.
> 
> Let us know what the error is and we can go from there.
> 
> Ben

Jon - gonna look into mongrel

Ben - here is the error so far: _crap can’t copy paste_

c:/ruby/lib/ruby/gems (snip snip) / webrick1.1: warning: already  
initialized constant OPTIONS  
c:/ruby (snip ) /config/environment.rb:8 warning: already initialized  
constant RAILS\_GEM\_VERSION  
---- lots more errors…

c:/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:251:in “report activate  
error” could not find rubygem tzinfo \<\>= 0.0.0\> gem::loaderror

ANd etc…

Will

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 6, 2006, 12:35am UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/5 "2006-09-06T00:35:53Z")

</div>

RE to myself -

duh, need to install some of those missing gems. Still wont’ fix the  
prev problems in webrick, but mogrel is getting around them.

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [September 6, 2006, 2:20am UTC](https://www.ruby-forum.com/t/how-to-start-a-rails-application-w-out-using-rails-command/67656/6 "2006-09-06T02:20:54Z")

</div>

On Wed, Sep 06, 2006, will wrote:

> duh, need to install some of those missing gems. Still wont’ fix the  
> prev problems in webrick, but mogrel is getting around them.

The warnings are nothing to worry about, but yeah. Gems 🙂

Ben
