Posted By

chrisaiv on 07/19/10


Tagged

rails


Versions (?)

Rails: Freezing an app


 / Published in: Rails
 

Migrating a Rails app from Development to Production can sometimes be a real pain. One way I help reduce headache is by copying all the necessary Rails files to make it a self-contained unit (Freezing). If I need to make version changes later, I simply unfreeze.

  1. ###########################
  2. #Step 1: Change Directory to Rails App
  3. ###########################
  4. bash$: cd rails_app
  5.  
  6. ###########################
  7. #Step 2: Use Rake to Freeze
  8. ###########################
  9. #Freeze Rails to version 2.3.5
  10. rake rails:freeze:edge RELEASE=2.3.5
  11.  
  12. ###########################
  13. #Use Rake to Unfreeze
  14. ###########################
  15. rake rails:unfreeze

Report this snippet  

You need to login to post a comment.