I can’t find clear documentation on these use of render-build.sh. I have an app on my account (hostedgpt-old) which has a render-build.sh file. I noticed that this script was running db:prepare
but this is also a docker deploy and my Dockerfile launches a docker-entrypoint
script which is also running db:prepare
.
I’m working on ensuring my app can be deployed to multiple hosts so I’m trying to resolve this. I removed db:prepare from my docker-entrypoint since your docs suggest that render-build is what should handle it. I created a new commit with a trivial migration and I did a fresh deploy.
The deploy was successful but i don’t see anywhere in my deploy build logs that the migration was run. However, thea app successfully started and rails apps typically don’t start if there is a pending migration whcih has not been run. So I hop into console, open rails console, and check the database field I did a migration on and it has not been updated! Right now, I’m really confused.
- Will the render-build.sh run even when I have a Dockerfile, or is that mistaken and I should remove it.
- Any idea how my app successfully deployed the latest commit, which has a migration, and was able to successfully start up without running the migration?
Thanks for any help on this!
P.S. I have a follow-up question on another support issue that I’d love to get some eyes on: Is Render restarting my app b/c of RAM?