Ruby: Deploying your Ruby application

This documentation is part of the Deploy to production guide. You can view the complete guide here: Deploy Ruby code to production in minutes with Stackhero.

👋 Welcome to the Stackhero documentation!

Stackhero provides a ready-to-use Ruby cloud solution that delivers numerous advantages, including:

  • Deploy your application in just a few seconds with a simple git push.
  • Use your own domain name and take advantage of automatic configuration of HTTPS certificates for enhanced security.
  • Benefit from automatic backups, one-click updates, and clear, transparent, and predictable pricing.
  • Enjoy optimal performance and enhanced security thanks to a private, dedicated VM.

Save time and make your life easier: it only takes 5 minutes to try Stackhero's Ruby cloud hosting solution!

You’re ready to deploy. Use:

git push stackhero main

During the first deployment, Git will ask you to confirm the SSH key fingerprint. Type "yes" to continue.

After a short wait, your application will be online.

<!-- ![Example of deploying Ruby code to Stackhero using the `git push` command](/images/docs/ruby/040_deploy/rubyDeployGitPush.png) -->

Access your deployed application at the address shown in your Stackhero dashboard. The address will look like https://<XXXXXX>.stackhero-network.com.

Your application is now live in production.

If you encounter any issues during deployment, the Troubleshooting section covers common problems and their solutions.