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 within seconds using a simple git push.
  • Use your own domain name, with automatic HTTPS certificate setup for secure connections managed on your behalf.
  • Take advantage of automatic backups, one-click updates, and predictable pricing, so you can focus on your code rather than 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 configuring the environment, you can create a staging branch as follows:

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 to staging.