3

Let's say right now I zip/tar a copy of my current Rails app directory, put it in a flashdrive and store it 10 years.

How can I be sure that rubygems.org will be around when I try to run this application in 10 years time?

For this reason, I wanted to know if there's a way to store a complete rails app, including all gems defined in the Gemfile, the databases and all files in a backup, so I'm sure I will be able to execute it in the future.

1
  • 1
    dismiss the actual claim that a flashdrive might last 10 years (it's just an example)
    – bbonamin
    Aug 4, 2011 at 17:26

1 Answer 1

5

Use the bundle package command to package all your gems in vendor/cache.

More info: http://gembundler.com/bundle_package.html

As for your database I'd just dump the data into a file (e.g. an SQL dump). Your migrations should cover the structure.

1
  • 1
    So simple, yet so powerful. So Rails. I love this framework more and more everyday. Thank you very much
    – bbonamin
    Aug 4, 2011 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.