"bundle install" fails with: Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of the sources listed in your Gemfile.
cirosantilli opened this issue · 4 comments
At 8e656f9.
That GPL business was ugly!
- https://stackoverflow.com/questions/66844316/bundlergemnotfound-could-not-find-mimemagic-0-3-5-in-any-of-the-sources-on-ra
- https://www.theregister.com/2021/03/29/rails_mime_fix/
Running:
bundle update --conservative mimemagic
appears to make bundle install
work by updating mimemagic.
After that:
foreman start -f Procfile.hot
fails with
error Command "build:dev:server" not found.
I try patching:
--- a/Procfile.hot
+++ b/Procfile.hot
@@ -9,4 +9,4 @@ rails: HOT_RELOADING=TRUE rails s -b 0.0.0.0
hot-assets: sh -c 'rm -rf public/webpack/development || true && bundle exec rake react_on_rails:locale && HOT_RAILS_PORT=3500 yarn run hot-assets'
# Keep the JS fresh for server rendering. Remove if not server rendering
-rails-server-assets: sh -c 'yarn run build:dev:server'
+rails-server-assets: sh -c 'yarn run build:dev'
and it seems to move further, but then fails at:
13:19:54 rails.1 | started with pid 282277
13:19:54 hot-assets.1 | started with pid 282278
13:19:54 rails-server-assets.1 | started with pid 282280
13:19:54 rails-server-assets.1 | yarn run v1.22.10
13:19:54 rails-server-assets.1 | $ rm -rf public/webpack/development && RAILS_ENV=development NODE_ENV=development bin/webpack
13:19:56 hot-assets.1 | /home/ciro/.rvm/gems/ruby-2.7.1/gems/actionpack-5.2.4.3/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
13:19:56 hot-assets.1 | /home/ciro/.rvm/gems/ruby-2.7.1/gems/actionpack-5.2.4.3/lib/action_dispatch/middleware/static.rb:111: warning: The called method `initialize' is defined here
13:19:56 rails.1 | => Booting Puma
13:19:56 rails.1 | => Rails 5.2.4.3 application starting in development
13:19:56 rails.1 | => Run `rails server -h` for more startup options
13:19:56 rails.1 | /home/ciro/.rvm/gems/ruby-2.7.1/gems/actionpack-5.2.4.3/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
13:19:56 rails.1 | /home/ciro/.rvm/gems/ruby-2.7.1/gems/actionpack-5.2.4.3/lib/action_dispatch/middleware/static.rb:111: warning: The called method `initialize' is defined here
13:19:57 rails.1 | A server is already running. Check /home/ciro/git/react-webpack-rails-tutorial/tmp/pids/server.pid.
13:19:57 rails.1 | Exiting
13:19:57 hot-assets.1 | yarn run v1.22.10
13:19:57 hot-assets.1 | error Command "hot-assets" not found.
13:19:57 hot-assets.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
13:19:57 rails.1 | exited with code 1
13:19:57 system | sending SIGTERM to all processes
13:19:57 hot-assets.1 | exited with code 1
13:19:58 rails-server-assets.1 | terminated by SIGTERM
It appears that hot-assets
was removed at 8e656f9 which points to #477 It gets called directly from Procfile.hot
I got the non-hot version running by manually running the commands from Procfile.static
:
yarn run build:dev
rails s -b 0.0.0.0
I'm having the same problem, I tried both deleting the Gemfile.lock and also adding gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f' in Gemfile, but after that when I try running 'foreman start -f Procfile.hot' I get the following error and the server terminates instantly.
Command "build:dev:server" not found
@justin808 after updating the Procfile.hot another error was raised error Command "hot-assets" not found