# How to start server for site with no /script/server/ script?

**URL:** <https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008>\
**Category:** Rails\
**Created:** [October 27, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008 "2009-10-27T22:33:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [October 27, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008/1 "2009-10-27T22:33:59Z")

</div>

I’m a newbie to Rails and can’t get a site working that doesn’t have a  
/script/server scripts.

I setup Ruby on Rails to run on Fedora and created a new website  
(“myfirstrails”). When I run “./script/server -d” from within the  
“/myfirstrails” folder, WEBrick boots and I can access the site via  
[http://www.myfirstrails.com:3000](http://www.myfirstrails.com:3000).

However, I am trying to migrate an existing rails site to the same  
server. This site (“mynewsite”) does not have a /script/server/  
folder…so I’m not sure how to start the server for it.

It seems like I should be able to start the server globally and then run  
any number of sites on it.

Any ideas?

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [October 27, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008/2 "2009-10-27T23:05:54Z")

</div>

Ben C. wrote:

> I’m a newbie to Rails and can’t get a site working that doesn’t have a  
> /script/server scripts.
> 
> I setup Ruby on Rails to run on Fedora and created a new website  
> (“myfirstrails”). When I run “./script/server -d” from within the  
> “/myfirstrails” folder, WEBrick boots and I can access the site via  
> [http://www.myfirstrails.com:3000](http://www.myfirstrails.com:3000).
> 
> However, I am trying to migrate an existing rails site to the same  
> server. This site (“mynewsite”) does not have a /script/server/  
> folder…so I’m not sure how to start the server for it.

No script/server? That’s unusual. In any case, you can probably copy it  
in from another Rails app.

> It seems like I should be able to start the server globally and then run  
> any number of sites on it.

You’d need Passenger (or similar) for that. The Mongrel and WEBrick  
implementations that come with Rails aren’t designed that way.

> Any ideas?

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [October 27, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008/3 "2009-10-27T23:06:37Z")

</div>

When running Apache2 + Passenger you do not use the scripts.Â It is also possible to run mongrel\_rails manually.Â Try 'mongrel\_rails help' for some info.  
  
Good luck  
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  
-~----------~----~----~----~------~----~------~--~---

---

<div class="post-metadata">

**Author:** ![bch36](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bch36](https://www.ruby-forum.com/u/bch36)\
**Post date:** [October 28, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/how-to-start-server-for-site-with-no-script-server-script/178008/4 "2009-10-28T14:15:47Z")

</div>

The first thing you should check is that the version of Rails you have  
installed is the version your target application (the one you’re  
trying to migrate) is expecting to use.

1. “rails --version” will tell you what you’ve got installed.

2. target\_app/config/environment.rb will have a line like:  
“RAILS\_GEM\_VERSION = ‘2.3.4’ unless defined? RAILS\_GEM\_VERSION”

If these versions match you’re in good shape.

The second thing you need to check is that you support the database  
your target is expecting to use.

1. target\_app/config/database.yml will have three lines like “adapter:  
postgresql”, one each for development, test, and production modes.

If you support that db you’re in good shape.

If you’re in good shape on both counts, you should be able to run:

“rails -d db target\_app”  
“cp -R source\_dir/target\_app/\* target\_dir/target\_app”

At which point you should be able to edit the target\_app/config/  
database.yml to suit, run the migrations, and get on with life…

On Oct 27, 5:33 pm, Ben C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
