Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Upgrade guide from 3.x.x to 4.x.x #1531
Hi, I am trying to upgrade our project from 3.x.x to 4.x.x and I'm having a lot of difficulty. Is there a step-by-step upgrade guide I can follow somewhere? What state is the 4.x.x release in?
I've tried simply blowing away our old configuration and running
Some more information on what's required to migrate to 4.x.x would be great.
Thanks, @humphreybc The current 4.x release is a pre-release and there is some work still left to be done including documentation. We are working on this and hopefully should have a stable release in next 2 weeks.
But if you want to upgrade now, what happens if you follow these steps in your app:
add 4.x version to gemfile and run
@gauravtiwari Thanks. I don't think you want
Here's my experience following your instructions step-by-step.
Installing pre-release version
Updating version in Gemfile
This resulted in a bunch of conflicts. The files were dramatically different. In a past attempt, I decided to overwrite everything (starting fresh) and didn't get anywhere, so this time, I decided not to overwrite what was there already.
It's important to note that after running this command, I checked
I get the following error:
As @humphreybc said, do not run the install script if you're doing a delicate and complicated upgrade.
I finally got my setup working with
This gist is sort of a mess because it was never intended for sharing, but maybe it might help someone else in a similar situation: https://gist.github.com/vcavallo/22cac63d01e3b73a56a92a619c6ff698
I also had some minor trouble with the upgrade process.
Add gem 'webpacker', '>= 4.0.x' to Gemfile. Then,
The trouble was with