Hi,
I’ve been trying to adjust the startup command to run sidekiq after every deploy and for some reason is not working.
Here is the startup command:
bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}; bundle exec sidekiq
And here is the render.yaml file:
services:
Let’s create our background worker
- type: worker
name: sidekiq-worker
env: ruby
region: ohio
buildCommand: bundle install
startCommand: bundle exec sidekiq
autoDeploy: false
envVars:- key: REDIS_URL
fromService:
type: redis
name: sidekiq-redis
property: connectionString
- key: REDIS_URL
- type: web # this example Rails service comes from Getting Started with Ruby on Rails on Render | Render
name: mysite
runtime: ruby
buildCommand: “./bin/render-build.sh”
startCommand: “bundle exec puma -C config/puma.rb”
envVars:
- key: DATABASE_URL
fromDatabase:
name: mysite
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
- key: REDIS_URL # this must match the name of the environment variable used in production.rb
fromService:
type: redis
name: cache
property: connectionString
Any advice?
Thanks!