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

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!