I just did this and it seems to be working fine now.
- Make sure you commit everything
- Make a blank rails app outside of your rails repo
- Copy the app your converting (backup) to another directory outside of your repo
- Copy (overwrite) the blanks rails app in to the app you are converting
- Copy (overwrite) the backup on to the app you are converting
- Check the git status, look at the pull request, make sure
node_modules
is included in .gitignore
- I double check these files, compare them to the blank app:
gemfile
.gitignore
application.rb
development.rb
production.rb
application_controller.rb (You will need to change what is inherited)
If you need a reference these are the file changes I had when I was done:
(use "git restore <file>..." to discard changes in working directory)
modified: .gitignore
Untracked files:
(use "git add <file>..." to include in what will be committed)
app/assets/images/
app/assets/stylesheets/
app/helpers/
app/javascript/
app/views/layouts/application.html.erb
babel.config.js
bin/webpack
bin/webpack-dev-server
bin/yarn
config/initializers/assets.rb
config/initializers/content_security_policy.rb
config/initializers/cookies_serializer.rb
config/webpack/
config/webpacker.yml
lib/assets/
package.json
postcss.config.js
public/404.html
public/422.html
public/500.html
public/apple-touch-icon-precomposed.png
public/apple-touch-icon.png
public/favicon.ico
test/application_system_test_case.rb
test/channels/
test/helpers/
test/system/
tmp/pids/
yarn.lock