DEV Community

Cover image for Deploying Taipy app in Render
David Akim
David Akim

Posted on

Deploying Taipy app in Render

In this lesson we will go the steps of deploying a Taipy app in Render. Taipy is an open-source Python library that supports both front-end and back-end development, streamlining the process from creating prototypes to deploying production-ready applications. Render is a service that allows you to build, deploy, and scale your apps.

Prerequisite

  1. Must be familiar with Python and Github
  2. Have a Github account. Create one here
  3. Have a Render account. Create one here
  4. Have a Taipy app

Procedure

  1. Create a new Github repository.
  2. Create a requirements.txt file for your Taipy app.

    pip freeze > requirements.txt
    
  3. Set your Taipy app host to 0.0.0.0 and port to 10000.
    Image description

  4. Push your Taipy app to your Github repository.

  5. Login to your Render account and select Web Service.
    Image description

  6. Select your Github repository that contains the Taipy app.Image description

  7. Give your web service a name, select Python 3 for Language and select the Github branch that you want to deploy. Image description

  8. Enter the root directory (if any) and the Start Command (the command you use to run the app locally). Image description

  9. Select your instance. (There is a free tier)Image description

  10. Enter any Environment Variables and then click Deploy Web Service Image description

  11. The URL for your app is generated. The status of your app is shown. In this case, it is Live. Image description

  12. Go to the URL to see your app. Image description

If your app fails, you can fix your app, push it to Github and Render will automatically re-deploy it. If it doesn't, you can click Manual Deploy. This concludes our lesson.

Top comments (0)