# Moving a project from windows to linux

**URL:** <https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136>\
**Category:** Rails\
**Created:** [May 4, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136 "2009-05-04T16:04:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 4, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/1 "2009-05-04T16:04:44Z")

</div>

How easy is it to do this. Is it simply a case of copying the project  
directory over to the linux directory or does one have to create a new  
project in the linux system and copy paste (due to the wonders of rails  
magic)???

---

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 4, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/2 "2009-05-04T16:22:58Z")

</div>

Copy and paste does largely work. You just will need to install all of  
your gems and reconfigure for the DB you are using.

On May 4, 10:04 am, Adam A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 4, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/3 "2009-05-04T16:30:37Z")

</div>

tashfeen.ekram wrote:

> Copy and paste does largely work. You just will need to install all of  
> your gems and reconfigure for the DB you are using.

You might also integrate your code into a version controller (git, svn,  
or Brand  
X), and then outegrate it on the target machine.

Then, if the tests don’t pass, you can fix them on the windows machine,  
pass all  
tests, integrate, outegrate again, and try again…

–  
Phlip  
[http://flea.sourceforge.net/resume.html](http://flea.sourceforge.net/resume.html)

---

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 4, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/4 "2009-05-04T16:42:29Z")

</div>

On 2009-05-04, Adam A. wrote:

> How easy is it to do this. Is it simply a case of copying the project  
> directory over to the linux directory or does one have to create a new  
> project in the linux system and copy paste (due to the wonders of rails  
> magic)??? – Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

There’s really nothing special about it. You do have to make sure that  
it has access to the appropriate databases, the gems it is dependent  
upon are installed, and that the target server has the same version of  
Rails (unless you vendor it in vendor/rails).

You might wan tto check out Capistrano for easier deployment, however,  
that way it can perform all the necessary steps automatically. I’d  
recommend running:

rake gems:install  
rake db:create:all  
rake db:migrate

That should be sufficient, I think.

> 

–  
Brandon

> **[Coming Soon](https://perpetualseeker.com/)**
>
> Something great is coming.

Blog about college, programming, and other random things.  
Follow me on Twitter: [http://twitter.com/devbanana](http://twitter.com/devbanana)

---

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 4, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/5 "2009-05-04T17:47:43Z")

</div>

We develop on Windows/Mac and deploy to Linux servers with no changes.

Make sure your environment.rb file is setup to specify the appropriate  
Rails version and that you also specify all the gems used by the  
application (using config.gem). That way, if your Linux machine is  
missing anything, you won’t be able to startup a Mongrel/Webrick  
server.

On May 4, 7:40 am, “Brandon O.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![scudco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scudco](https://www.ruby-forum.com/u/scudco)\
**Post date:** [May 5, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/moving-a-project-from-windows-to-linux/167136/6 "2009-05-05T15:12:00Z")

</div>

Hey Adam,

Copying usually works, but is the dirty solution. I usually create the  
whole rails environment in the target machine and then just checkout  
the application as usual.

Cheers, Sazima

On May 4, 11:04 am, Adam A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
