Python: TL;DR
Steps to deploy your Python code on Stackhero
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Python cloud solution that provides a host of benefits, including:
- Deploy your application in seconds with a simple
git push.- Use your own domain name and benefit from the automatic configuration of HTTPS certificates for enhanced security.
- Enjoy peace of mind with automatic backups, one-click updates, and straightforward, transparent, and predictable pricing.
- Get optimal performance and robust security thanks to a private and dedicated VM.
Save time and simplify your life: it only takes 5 minutes to try Stackhero's Python cloud hosting solution!
Deploying your Python code on Stackhero is simple and efficient. Follow the steps below to get your application up and running.
1. Set up the SSH public key
- Retrieve your SSH public key by running the following command:
cat ~/.ssh/id_*.pub - Open your Python service dashboard, click the
Configurebutton, and paste your SSH public key into theSSH public keyssection.
2. Add the Stackhero Git remote to your project repository
- Open a terminal and navigate to your Python project directory.
- Add the Stackhero Git remote by executing the following command:
git remote add stackhero ssh://stackhero@<XXXXXX>.stackhero-network.com:222/project.git
3. Deploy your Python code
- From your project directory, deploy your code with the following command:
git push stackhero main
By following these steps, your Python code will be deployed on Stackhero in no time. Enjoy the simple deployment process!