Hey folks,
Having a few issues with a Rails 7 deployment, and looking for some insight.
Project details:
- Deploying from monorepo, and have set the root directory to
api/
I am getting this error:
Oct 18 10:09:47 AM Could not find gem 'bundler'.
Oct 18 10:09:47 AM Did you mean builder?
Oct 18 10:09:47 AM ==> Build failed π
Earlier in the build, though, I see this:
Oct 18 10:09:36 AM ==> Detected Ruby version 3.1.2
Oct 18 10:09:45 AM Updating rubygems-update
Oct 18 10:09:45 AM Successfully installed rubygems-update-3.3.24
Oct 18 10:09:45 AM Installing RubyGems 3.3.24
Oct 18 10:09:45 AM Successfully built RubyGem
Oct 18 10:09:45 AM Name: bundler
Oct 18 10:09:45 AM Version: 2.3.24
Oct 18 10:09:45 AM File: bundler-2.3.24.gem
Oct 18 10:09:45 AM Bundler 2.3.24 installed
Oct 18 10:09:45 AM RubyGems 3.3.24 installed
Oct 18 10:09:45 AM Regenerating binstubs
Oct 18 10:09:45 AM Regenerating plugins
Hereβs my render-build.sh
file:
#!/usr/bin/env bash
# exit on error
set -o errexit
bundle update -- bundler
bundle install
bundle exec rake assets:precompile
bundle exec rake assets:clean
bundle exec rake db:migrate
bundle exec rake db:seed
And here is my render.yaml
:
databases:
- name: waldo_prod
databaseName: waldo_prod
user: waldo_prod
services:
- type: web
name: waldo_backend
env: ruby
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec puma -C config/puma.rb"
envVars:
- key: DATABASE_URL
fromDatabase:
name: waldo_prod
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
Some input would be helpful, thanks!