Python: Configuring your "Stackhero for Python" service

This documentation is part of the Deploy to production guide. View the full guide here: How to deploy your Python code to production in minutes.

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

If you have not already started a Stackhero for Python service, you can create one from your Stackhero dashboard. It usually takes just a couple of minutes.

Once your Python service is running, you will need to add your SSH public key to its configuration. You can display your public key by running:

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.