Python: Configuring your "Stackhero for Python" service

This documentation is part of the Deploy to production guide. You can view the complete guide here: How to deploy your Python code to production in just a few minutes.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Python cloud solution designed to simplify your deployments:

  • Deploy your application to production within seconds using a simple git push.
  • Use your own domain name, with automatic HTTPS certificate setup for secure connections managed on your behalf.
  • Take advantage of automatic backups, one-click updates, and predictable pricing, so you can focus on your code rather than 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.

If you have not yet started a Stackhero for Python service, you can create one from your Stackhero dashboard. This usually only takes a few minutes.

Once your Python service is up and running, you will need to add your SSH public key to its configuration. To display your public key, run:

cat ~/.ssh/id_*.pub

Do you not have SSH keys yet?

You can generate them with:

ssh-keygen -t ed25519

To add your public key to your Python service:

  1. Open the Stackhero dashboard and select your Python service.
  2. Click the "Configure" button.
  3. Paste your SSH public key into the "SSH public keys" section.

Example of a Python service configurationExample of a Python service configuration

Tip: You can also set your SSH public key globally so that any new services you create will automatically include it. To do this, go to your profile in the Stackhero dashboard, click your profile picture in the top right corner, select "Your profile", and add your SSH public key.