Heroku to Render to failed deployment

Hi everyone. We all heard the Heroku news and I was told about Render. I’ve decided to see what Render has to offer by first deploying the same app I have on Heroku.

I spun up a free web service, connected Github. Moments, Render tries to deploy but I got a failed deployment. Few things come to mind but one stood out: ruby version for Rails 7?

On Heroku, I could easily run “heroku run log/s” to see any errors. How to view error on Render? Tried to SSH but it seems that I need to be on a paid plan before doing so. Also with the free plan, how to run any rails commands like “rails db:migrate” etc?


Hey there,

Welcome to Render and thanks for giving us a look.

We’re a little behind the curve when it comes to a CLI - it’s on the list but we don’t have anything to share just yet. But in the meantime, you can see logs via the logs tab of your service in our dashboard. Deployment logs are visible from the event in the events table, hint: click on the word DEPLOY to see the build logs.

For SSH you do indeed to be using a paid plan, similar to access the shell for your service.

To run migrations you have a few options, I replace my buildCommand with a call to a script and then have it do a bunch of stuff, precompile, migrate the DB etc. Another option is to execute a job (https://render.com/docs/jobs) - there’s no UI for this so it’s via an API call. One thing you might want to look into is using a render.yaml. Also, if you’ve not already taken a look at https://render.com/docs/deploy-rails#update-your-app-for-render then that’s a great place to start.

Best of luck!

John B


Thank you! I can see my errors: redis connection :joy:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.