Rails 3.0 application Windows to Linux

Hello,

I developed a Rails 3.0 application on Windows. It connects to a couchDB
database. Everything works fine.
Now, I would like to take my application and put it on another machine
which runs under Linux.
I already migrated the database to this new machine.
What is the best solution to move my application from one machine to the
other one?
I saw many hints to deploy an application but no precise solution…
Thank you
Regards

On 25 June 2012 09:13, Paulo C. [email protected] wrote:

Hello,

I developed a Rails 3.0 application on Windows. It connects to a couchDB
database. Everything works fine.
Now, I would like to take my application and put it on another machine
which runs under Linux.
I already migrated the database to this new machine.
What is the best solution to move my application from one machine to the
other one?
I saw many hints to deploy an application but no precise solution…

You should just be able to copy the complete application, run bundle
install and start the server. That assumes you have installed ruby
and rvm on the linux machine of course.

Colin

I use Capistrano ( GitHub - capistrano/capistrano: A deployment automation tool built on Ruby, Rake, and SSH. ) to deploy
from windows dev box to an ubuntu server.
works really well. best part is if the new code pushed the ubuntu blows
up
for what ever reason. it’s very simple to roll back to the old working
version.

Cheers,
John

On Monday, June 25, 2012 3:13:46 AM UTC-5, Ruby-Forum.com User wrote:

I saw many hints to deploy an application but no precise solution…
Thank you
Regards


Posted via http://www.ruby-forum.com/.

On Monday, June 25, 2012 3:13:46 AM UTC-5, Ruby-Forum.com User wrote:

I saw many hints to deploy an application but no precise solution…
Thank you
Regards


Posted via http://www.ruby-forum.com/.

On Monday, June 25, 2012 3:13:46 AM UTC-5, Ruby-Forum.com User wrote:

I saw many hints to deploy an application but no precise solution…
Thank you
Regards


Posted via http://www.ruby-forum.com/.

Hello,

Thanks for the answer.

I always worked in windows. I developed my rails application on my
windows environment.

Now, I have a Linux environment where I would like to put my application
running.

To do that, Is it only necessary to pack my application directory, copy
the packed file to the linux environment, unpack it and run the
application as in Windows? (> rails s)
I tried to do that but I had errors, so I think it is not the correct
way.

I read about capistrano and I would take a look to see if it is what I
am looking for.

If you have another suggestion, it will be welcome. You have mentioned
the existence of tutorials. Can you suggest me a specific one?

Thank you

Best regards

Giedrius Rimkus wrote in post #1066157:

Please be more specific, because now, we don’t know where did you get
stuck. Deploying app on Linux environment is pretty straightforward.
There
is plenty of tutorials in the internet on how to do it

On 27 June 2012 07:49, Paulo C. [email protected] wrote:

To do that, Is it only necessary to pack my application directory, copy
the packed file to the linux environment, unpack it and run the
application as in Windows? (> rails s)
I tried to do that but I had errors, so I think it is not the correct
way.

Yes, that should work, except that you need to run bundle install
before starting the server. Assuming you have everything installed
and are using rvm.

I read about capistrano and I would take a look to see if it is what I
am looking for.

No need if you are just using the machine for development work.

To check you have everything installed ok try making a new app on the
linux machine.

Colin

Please be more specific, because now, we don’t know where did you get
stuck. Deploying app on Linux environment is pretty straightforward.
There
is plenty of tutorials in the internet on how to do it