Migrating Apps From Heroku To Render

in STEMGeeks3 years ago

og-img.png

You may have heard that Heroku will be discontinuing free plans and removing inactive apps from their platform. This news was announced just recently and you can read more about it in my post from few days ago - No More Free Heroku Plans. Heroku has made a business decision, and I hope it works out for the platform as intended. I do like Heroku and will continue using its paid plans. It is super easy to use and has been reliable so far. However, I have no plans to upgrade some of my apps running on a free plan to a paid one yet. Instead, I want to see what other alternatives are available, and it looks like there is no shortage of alternatives.

The first alternative I came across is Render. I am planning to try other alternatives as well, just to see how various platforms compare in regards to difficulty of app deployment, initial configuration, and how reliable they are. The reason I chose to try Render first is because it looked like it was designed to compete with Heroku. They do offer free plan with limited bandwidth, and also offer paid plains. They claim their paid plans are more affordable than Heroku and we can get more computing power for less. Interesting.

My initial goal is to move all apps running on Heroku free plan, before they stop working. I was surprised to see how the moving apps from Heroku to Render is super easy. No additional configuration was needed. Just like on Heroku when deploying apps we need to connect to the GitHub repository where all the code is.

First we need to sign up on Render, which takes about a minute or less. Once verification is done and account is created, we are ready to deploy an app. On Render dashboard there is a big button - [New +]. Clicking new give multiple options for the app we are trying to deploy. The one we are interested in is Web Service, because we want the app to run on a web browser. The next step is connecting to the GitHub repository. After connecting to our Github repo, we are ready to deploy the app. We choose a unique name, can be the same name used on Heroku, if available. The last thing we need to do before building and deploying the app is provide Start Command. I didn't have to do this on Heroku. Instead the command would be stored in a procfile in GitHub project. I just copied the command from the procfile and used the same. It worked without any issues.

I tried two different start commands and both worked without any issues:

  • sh setup.sh && streamlit run myapp_streamlit.py
  • streamlit run myapp_streamlit.py

After the app is built Render provides a link to the app, it would be something like this myapp.onrender.com. I have not tested a lot yet. Some of the apps I already migrated are working ok. It does seem like Render apps a little bit slower, but not too noticeable. Render offers four regions to choose from: Oregon for US West, Frankfurt for EU Central, Ohio for US East, and Singapore for Southeast Asia. I chose the one closest to my location.

So, far I like how easy it was to deploy apps on Render and how they offer free plans. I will explore more how this platform works as well as exploring other alternatives. Have you used Render? What are your experiences with it. Let me know in the comments.

Sort:  

Perfect, I haven’t come across render, but have a look for sure.

Background worker apps are not free in there! By the way, thank you for sharing this info. It's truly useful!

Cheers~

Good to know. Thank you.

:( well no more FREE, but it might be a good move for Heroku. Hope Render works out..

This decision was inevitable, Given the amount of people jumping on to the developer journey. The team at Heroku could not miss unoportunity to cash in. No body knows what the future holds or if people will continue being this enthusiastic about learning and wanting in on the craft.

indeed a very helpful blog for developers and I'm sure beginners will also find this really very helpful, I've never used render but I'm curious.

Render let's you develop your apps. And can build your apps and run it. I not that familiar with this platform, I shall look on YouTube !

when i started to use a DB in heroku i recibed an email with that info. my bad luck. BYE Heoku hi Render :D

Thank you for sharing this amazing post on HIVE!
  • Your content got selected by our fellow curator @priyanarc & you just received a little thank you via an upvote from our non-profit curation initiative!

  • You will be featured in one of our recurring curation compilations and on our pinterest boards! Both are aiming to offer you a stage to widen your audience within and outside of the DIY scene of hive.

Join the official DIYHub community on HIVE and show us more of your amazing work and feel free to connect with us and other DIYers via our discord server: https://discord.gg/mY5uCfQ !

If you want to support our goal to motivate other DIY/art/music/homesteading/... creators just delegate to us and earn 100% of your curation rewards!

Stay creative & hive on!

It's a good try to consideringRender and from what you have narrated, the Render app gives you a similar satisfaction just as Heroku it's my first time to hear about the two though. Congratulations on moving your apps safely. Enjoy it.