Create a Post
1
Rails Empty project
When I create a new rails app and deploy this, I get an error. ```===> ANALYZING Previous image with name " us-west1-docker.pkg.dev/railway-infra/railway-docker-users/project/472ad6dc-13e7-4cee-bdb7-8faf81ec199a/service/f91d3797-3eb4-4982-ac01-12d17a7ea636:54ba15c0-6bed-4c25-93fb-d2cd8f2f52c4 " not found ===> DETECTING heroku/ruby 0.1.3 heroku/procfile 1.0.1 ===> RESTORING ===> BUILDING ----> Installing bundler 2.2.21 ----> Removing BUNDLED WITH version in the Gemfile.lock ----> Compiling Ruby/Rails ----> Using Ruby version: ruby-2.7.2 ----> Loading Bundler Cache ----> Installing dependencies using bundler 2.2.21 Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=/layers/heroku_ruby/gems/vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 Your Ruby version is 2.7.2, but your Gemfile specified 2.7.4 Bundler Output: Your Ruby version is 2.7.2, but your Gemfile specified 2.7.4 ! ! Failed to install gems via Bundler. ! Detected a mismatch between your Ruby version installed and ! Ruby version specified in Gemfile or Gemfile.lock. You can ! correct this by running: ! ! $ bundle update --ruby ! $ git add Gemfile.lock ! $ git commit -m "update ruby version" ! ! If this does not solve the issue please see this documentation: ! ! https://devcenter.heroku.com/articles/ruby-versions#your-ruby-version-is-x-but-your-gemfile-specified-y ! ERROR: failed to build: exit status 1 ERROR: failed to build: executing lifecycle: failed with status code: 51```
0
Load More