Python: Creating the staging environment
This documentation is part of the Deploy with GitHub Actions guide. You can view the complete guide here: How to deploy your Python code using GitHub Actions.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Python cloud solution designed to simplify your deployments:
- Deploy your application to production in just seconds with a simple
git push.- Use your own domain name, with automatic HTTPS certificate setup for secure connections managed for you.
- Take advantage of automatic backups, one-click updates, and predictable pricing, so you can focus on your code instead of infrastructure management.
- Benefit from high performance and security on a private, dedicated infrastructure. Your environment is isolated and protected.
Save time and streamline your workflow: your code can be up and running with Stackhero's Python cloud hosting in just 5 minutes.
Setting up a staging environment is almost identical to configuring production. You just need to repeat the steps above, replacing production with staging wherever it appears.
After setting up the environment, you can create a staging branch like this:
git checkout -b staging
Then push your staging branch to GitHub:
git push --set-upstream origin staging
Your staging branch will then be automatically deployed to the Python instance you have dedicated for staging.