# What is the best way to move rails application

**URL:** <https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923>\
**Category:** Rails\
**Created:** [November 14, 2006, 12:03pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923 "2006-11-14T12:03:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [November 14, 2006, 12:03pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923/1 "2006-11-14T12:03:16Z")

</div>

Hello…

I am a rails newbie. What are the best ways to move rails application to  
another server, what should i check and do before that? Just copying the  
directory tree usually doesnt work for me.

---

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [November 14, 2006, 12:28pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923/2 "2006-11-14T12:28:21Z")

</div>

It all depends on your current setup.

Do you use Mongrel+Apache, LiteHTTPD or Webrick? If you use Apache as  
a proxy to your application server then you will need to copy any  
Apache virtual domain configuration files (or mongrel cluster files)  
and tinker with them to work on your new host.

Are you using SQLite or a database server like MySQL/postgres? If you  
don’t use SQLite you will need to dump the database to a file an load  
it into the new database on the new host.

Clear anything in the rails\_app/tmp directory.

-christos

---

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [November 14, 2006, 12:39pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923/3 "2006-11-14T12:39:25Z")

</div>

Christos Z. wrote:

> It all depends on your current setup.
> 
> Do you use Mongrel+Apache, LiteHTTPD or Webrick? If you use Apache as  
> a proxy to your application server then you will need to copy any  
> Apache virtual domain configuration files (or mongrel cluster files)  
> and tinker with them to work on your new host.
> 
> Are you using SQLite or a database server like MySQL/postgres? If you  
> don’t use SQLite you will need to dump the database to a file an load  
> it into the new database on the new host.
> 
> Clear anything in the rails\_app/tmp directory.
> 
> -christos

i usually work on Mongrel+Apache (Windows XP). My database is always  
MYSQL.

---

<div class="post-metadata">

**Author:** ![pablo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ad7895/32.png) [@pablo](https://www.ruby-forum.com/u/pablo)\
**Post date:** [November 14, 2006, 12:54pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-move-rails-application/75923/4 "2006-11-14T12:54:24Z")

</div>

On 14 Nov 2006, at 12:39, Pabloz wrote:

> i usually work on Mongrel+Apache (Windows XP).

I’ve never used Apache on XP but it should be a simple case of  
copying configuration files for apache over to the new host, and  
restarting the server.

> My database is always MYSQL.

Create a db with the same name then on the new host and then use  
‘mysqldump’ to dump from the old host and load it into the new one.

Where does your app fail on the new host exactly? Do you have any  
errors in the logs?

-christos
