This guide walks you through the steps to deploy your Pytherin project using Reflex, so your landing page can go live in just a few minutes. Reflex Hosting offers a free plan so you can deploy one project for free.
requirements.txt fileIn your project, run
pip freeze > requirements.txt
This ensures all your Python dependencies are listed and ready for deployment.
reflex cloud login
You’ll be redirected to your browser to sign in or signup with GitHub or Gmail.
Once you’re logged in click on the top-right button named “How to deploy”
You will see your project number like this
reflex deploy --project f88b1574-f101-####-####-5f##########
Copy it, go to your project terminal and add --envfile .env at the end to pass your environment variables
reflex deploy --project f88b1574-f101-####-####-5f########## --envfile .env
Reflex will guide you through a few prompts:
requirements.txt if it detects differences.