> ## Documentation Index
> Fetch the complete documentation index at: https://aptible-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ruby on Rails

> Deploy a Ruby on Rails starter template

> **[GitHub Repo](https://github.com/aptible/template-rails)**

> **[View Example](https://app-52710.on-aptible.com/)**

# Overview

This guide will walk you through the process of launching the [Rails Getting Started example](https://guides.rubyonrails.org/v4.2.7/getting_started.html) on Aptible.

# Get started

## Deploy from the Dashboard

**Deploy with Git Push**

> **Deploy with Git Push**
>
> Select Deploy with Git Push

> **Add an SSH key**
>
> If you have not done so already, you will be prompted to set up an [SSH key](https://www.aptible.com/docs/public-key-authentication#ssh-keys).

> **Configure Environment**
>
> Select your [stack](https://www.aptible.com/docs/stacks) to deploy your resources. This will determine what region your resources are deployed to. Then, name the [environment](https://www.aptible.com/docs/environments) your resources will be grouped into.

> **Prepare the template**
>
> Select `Ruby on Rails Template` for deployment, and follow command-line instructions.

> **Fill environment variables**
>
> Aptible will automatically fill this template's required databases, services, and app's configuration with environment variable keys for you to fill with values. Once complete, save and deploy the code!

> **View logs in real time**

> **Expose your app to the internet**
>
> Now that your code is deployed, it's time to expose your app to the internet. Select the service that needs an [endpoint](https://www.aptible.com/docs/endpoints), and Aptible will automatically provision a managed endpoint.

> **View your deployed app 🎉**

**Deploy from GitHub**

## Deploy via the CLI

**Deploy with Git Push**

> **Install the Aptible CLI**
>
> Install the CLI

> **Create an app**
>
> ```python theme={null}
>   aptible apps:create HANDLE
>
>   # Example: aptible apps:create rails-template
> ```

# Continue your journey

> **Deploy custom code**
>
> Read our guide for deploying custom code on Aptible.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.