# Running a rails project in another folder

**URL:** <https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209>\
**Category:** Rails\
**Created:** [December 22, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209 "2008-12-22T20:28:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [December 22, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209/1 "2008-12-22T20:28:13Z")

</div>

Hi all,

I want to transfer a rails project (still under development) from my  
aptop to my pc. I copied the project folder into the ruby directory on  
my pc and ran it with mongrel (ran successfully). However, when I try  
to access the site through the browser, the pages won’t display. What  
am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [December 22, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209/2 "2008-12-22T22:27:42Z")

</div>

I dont think you can just copy the application folder over. Try running  
the  
rails \<app\_name\> command on your pc and then copy the app folder over  
and all other files that you may have changed (routes, db.yaml…etc)

I have never done this myself, so let me know how it goes 🙂

> am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [December 22, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209/3 "2008-12-22T22:49:42Z")

</div>

It is custom to copy the folder from one location to another and then  
adjust the database.yml if required and other dependent configuration  
settings.

How do you verify that your application on pc using mongrel is  
running?  
What database are you using?  
What is the contents of application log file (considered the  
environment)?

Give us some more information so we can help you.

On Dec 22, 10:27 pm, Maulin P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [December 23, 2008, 1:56am UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209/4 "2008-12-23T01:56:32Z")

</div>

what do you mean by the browser just came up nothing? or is there any  
hint about the errors…

showing us whatever it displayed maybe helpful

and by the way

modifying you database.yml file is recommanded just after you maved  
the project directory.

so check that first.

---

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [December 24, 2008, 9:21am UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209/5 "2008-12-24T09:21:25Z")

</div>

Hi guys,

Sorry for the delay in replying. Thanks for your replies. It was  
indeed my database.yml that was giving the problem. Its now working  
perfectly.

Thanks again,

Stephen.
