Ruby: TL;DR

Steps to deploy your Ruby code on Stackhero

👋 Welcome to the Stackhero documentation!

Stackhero provides a ready-to-use Ruby cloud solution offering a range of advantages, including:

  • Deploy your application within seconds using a simple git push.
  • Use your own domain name and benefit from the automatic configuration of HTTPS certificates for enhanced security.
  • Take advantage of automatic backups, one-click updates, and clear, transparent, and predictable pricing.
  • Enjoy optimal performance and enhanced security thanks to a private, dedicated infrastructure.

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

Deploying Ruby code to Stackhero is straightforward.

Follow these simple steps to deploy your Ruby application.

  • Start by locating your SSH public key. You can check its content using the following command in your terminal:

    cat ~/.ssh/id_*.pub
    
  • After finding your key, log into the Stackhero dashboard and access the configuration panel for your Ruby service. Select Configure and add your SSH public key in the SSH Public Keys section.

  • Open a terminal and change to your Ruby project's directory. To add the Stackhero Git remote, use the following command:

    git remote add stackhero ssh://stackhero@<XXXXXX>.stackhero-network.com:222/project.git
    
  • To deploy your Ruby application, execute this command from your project directory:

    git push stackhero main