Logo

Command Palette

Search for a command to run...

Getting Started with Manifest

Manifest Tutorial

In this example we are going to modify the configuration of the simple application we used in our Getting started guide.

Updating the Manifest file

First add a Manifest file to the following location in your repo:

<application-root>/.cloud66/manifest.yml

Next add following to your manifest.yml:

rails:
  configuration:
    ruby_version: 3.0

You'll see that we're defining several things in this YAML:

  • The component type we are configuring (rails)
  • The version of Ruby that will be installed as part of this component ( ruby_version)

Next, deploy your application and the new setting will take effect!

Defining a server for your component

The Manifest file gives you a lot of control over your components. For example, you can use the server settings to specify the exact size and region for your application server. The YAML below is an example of this in action:

rails:
  configuration:
    ruby_version: 3.0
  servers:
  - server:
      unique_name: master
      size: s-2vcpu-2gb
      region: lon1
      vendor: digitalocean
      key_name: My_DO_Account # the name of your cloud provider in your Cloud 66 account

This would install a Rails server on DigitalOcean, at their London data centre and on a 2CPU and 2GB cloud server.