what are the steps to follow for migrating a project from rails 3.2.13,ruby 1.9.1 to rails 4.2 or rails 4 other versions? -


i have project on rails3.2.13 , having around 80 gems in it,now need migrate project rails 4,what steps need follow upgrading without gems conflicts , errors.

with many gems in codebase suspect large app , not going quick upgrade , unless have been given large amount of time this, best bet break things down , updates in stages on old version , upgrade when feel codebase in better state.

before attempting upgrade consider these points , make small changes / releases before big upgrade project. less code have change @ final upgrade stage less risks have.

  • gems: more gems have, more code have worry , more more code have upgrade. app using these gems , if not can remove un-used ones. of gems pretty basic , can same functionality rails / ruby functionality , remove gem altogether. less gems have, less pain have when comes upgrading.
  • tests: whilst working on code, write tests new code add or alter , write tests core parts of code.
  • latest 3.2 release: coebase running on latest 3.2 release, include warnings of things may not work can sort out sooner.
  • deprecated: there deprecated warnings in logs, if fix these before attempting upgrade.
  • old code: there code know wont work on later versions, can replaced work on both.

when feel codebase in state can upgraded, consider these points.

  • i suggest not trying @ same time: think breaking out ruby upgrade separate project rails upgrade.
  • maybe consider moving slowly, getting app onto 4.0 or 4.1 , re-evaluating things using points above prevent less risk things breaking.
  • regardless of how many automated tests have, software tester run on app. find errors automated tests have missed.

there plenty of upgrade guides out there should take read of before performing upgrade.

good luck.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -