Python: TL;DR

Steps to deploy your Python code on Stackhero

👋 Welcome to the Stackhero documentation!

Stackhero provides a ready-to-use Python cloud solution designed to streamline your deployment process:

  • Deploy your application to production in seconds with a simple git push.
  • Use your own domain name, with automatic HTTPS certificate configuration for secure connections handled for you.
  • Rely on automatic backups, one-click updates, and predictable pricing, so you can focus on your code, not infrastructure management.
  • Benefit from strong performance and security on a private, dedicated infrastructure. Your environment is isolated and protected.

Save time and simplify your workflow: you can have your code 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!