Ruby: TL;DR
Steps to deploy your Ruby code on Stackhero
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Ruby 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 Ruby cloud hosting solution!
Deploying Ruby code to Stackhero is straightforward.
Follow these simple steps to deploy your Ruby application.
1. Set up the SSH public key
-
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
Configureand add your SSH public key in theSSH Public Keyssection.
2. Add the Stackhero Git remote to your project repository
-
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
3. Deploy your Ruby code
-
To deploy your Ruby application, execute this command from your project directory:
git push stackhero main