PHP: Creating the staging environment
This documentation is part of the Deploy with GitHub Actions guide. View the full guide here: How to deploy your PHP code using GitHub Actions.
👋 Welcome to the Stackhero documentation!
Stackhero provides a PHP cloud platform designed for fast, reliable deployments:
- Deploy your PHP application to production in seconds with a simple
git push.- Use your own domain, with automatic HTTPS certificates configured for you. There are no manual steps needed.
- Rely on automatic backups, one-click updates, and clear, predictable pricing. Stackhero handles these details, so you can focus on your code.
- Benefit from strong performance and security on a private, dedicated infrastructure built specifically for your applications.
Make your workflow smoother and save time. Getting started with Stackhero's PHP cloud hosting takes just a few minutes.
You can set up your staging environment in much the same way as the production environment. Just repeat the steps above, substituting production with staging where appropriate.
Once the settings are configured, you can create your staging branch like this:
git checkout -b staging
Then push it to GitHub:
git push --set-upstream origin staging
GitHub Actions will automatically deploy the code from your staging branch to the PHP service you have set up for staging.