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. Retrieve your SSH public key by running the following command:
    cat ~/.ssh/id_*.pub
    
  2. Open your Python service dashboard, click the Configure button, and paste your SSH public key into the SSH public keys section.
  1. Open a terminal and navigate to your Python project directory.
  2. Add the Stackhero Git remote by executing the following command:
    git remote add stackhero ssh://stackhero@<XXXXXX>.stackhero-network.com:222/project.git
    
  1. 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!