This is a example Ruby application that can be deployed to Qt Cloud Services
Before running through the Managed Application Runtime ("MAR") getting started guide, please make sure that you can access the management console. You will need a valid Qt Account or a Github account to access the management console.
This section will describe how to start your first MAR instance. If you are using the Qt Cloud Services management console for the first time, you will need to create a cloud before you can start your MAR instance. You can create a cloud easily by using the "Quick Start" wizard.
It is easy to start your MAR instance. Simply follow the steps below:
- Select the cloud you want to start your MAR instance.
- Once the cloud is selected, click "Launch Instance" under the Managed Application Runtime section of the management console.
- Enter the name for your MAR instance.
- Select the runtime size. Runtime size will determine how much memory and CPU will be allocated for your instance. For now, just pick "ar-1-mini".
- Select the runtime type. It will define how the instance will be used. Since in this getting started guide we will be writing a simple application, choose "Application".
- Once the Managed Application Runtime settings are in place, click "Create".
Once you have created your first MAR instance, you'll need to set up your personal SSH keys. SSH keys are used to authenticate your access to MAR instances when deploying code or opening remote access connections to database instances.
Clone / fork this repo to your local computer.
NOTE! Please test the application on your local computer before proceeding to the next step!
Managed Application Runtime uses Git for deployment, so first you need to have Git installed and SSH keys configured.
First you need to copy "Git Remote" value from your application instances configure tab in Qt Cloud Services management console. Then you can setup Git remote using following command inside you application root folder:
$ git remote add qtc <Git Remote>
After that you can deploy application with command
$ git push qtc master
You are now ready to learn more about the Key Concepts of MAR. We hope you will find this documentation helpful!