Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Robert Rees
Robert Rees

Posted on

     

Migrating databases from Heroku to Render

One of the more interesting aspects of Heroku ending its free service is that there is no simple way to enter your credit card and simple switch your data over to a paid plan. You have to migrate from the free to the paid servers.

On that basis it makes sense to look at what the alternatives are before deciding to make a decision.

Render has had a lot of positive comments for picking up the mantle of Heroku's promise of developer friendly PaaS and making good the deficits. It's Postgres service does allow you to move between the trial and paid for database service for example just by entering payment details.

It also allows you to host multiple databases in the same instance which is what I want for a lot of my hobby apps as they don't really have a lot of data.

The service exposes a standard database URL and so far I have been able to use standard Postgres tools for everything I've wanted to do with the database. You can even just cut and paste a string to connect withpgcli.

Thedocumentation for migrating from Render to Heroku is excellent and worked just as advertised.

Having imported the databases I then detached the Heroku instances and replaced theDATABASE_URL environment variable with the new URL from Render, restarted my dynos and every application I had worked perfectly.

The only issue I had was in my local setup where I needed to use thepg_restore from a matching version which I needed to specify the exact/usr/lib/postgresql/<version>/bin path.

Overall a great migration experience and I can't really fault it. I wish I had made the change sooner.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
anurag profile image
Anurag Goel
Building Render
  • Location
    San Francisco
  • Work
    Founder and CEO at Render
  • Joined

Welcome to Render!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    London, United Kingdom
  • Joined

More fromRobert Rees

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp