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

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.