Rails: Freezing an app


/ Published in: Rails
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.