![]() When it comes to databases, Flightcontrol supports Postgres, MariaDB, and MySQL through Amazon's Relational Database Service (RDS).įor this example, we will use Postgres. ![]() Our Rails application is pretty simple - we only need a web server and a database.Ĭlick the "Add Database" button under "Services." Setting up the Postgres Database with RDS Configuring Services for FlightcontrolĪt the bottom of the screen, there are choices for individual services to configure. We will configure our services individually and not use a preset configuration. When it comes to an environment - you can choose to use the environments that make sense for your project deployment.įor this tutorial, we only need one environment, so we'll choose "Production". ![]() We're going to use the GUI in this tutorial. You have the choice of using the Dashboard (also called the GUI) for an interactive configuration, or using a flightcontrol.json file for an infrastructure-as-code configuration. The next screen sets your Flightcontrol project up for deployment. Once you have GitHub connected, instead of the above screen, you'll see a list of all of the GitHub repositories that the Flightcontrol Ops app can access.Ĭhoose a repository to continue. Click the "Continue with GitHub" button and start the connection process.įollow our guide on Connecting Flightcontrol to GitHub to walk you through the necessary steps. If you haven't connected your Flightcontrol account to GitHub yet, let's do that now. If you do have an existing project or projects, click the "New Project" button.įor a new account, you will see the following form: If you don't have any projects yet, Flightcontrol will show you the form to create one. To create a new project, click the "Projects" tab in the left hand sidebar. Each environment can then have one or more services, such as a web application or a database. Each project can have multiple environments, such as staging or production. Flightcontrol projects represent a single application or set of related applications that you want to deploy to AWS. Now that you have a Flightcontrol account, you can create a new project. If you haven't already created a Flightcontrol account, you can do so at the Flightcontrol Dashboard (opens in a new tab). We will need to authorize the Flightcontrol GitHub app to access this repository before we can deploy it. Public open source repositories are also supported, but you would need to trigger manual deployments. If you have control over the repository, Flightcontrol can listen for changes to your repository and automatically deploy your application when you push new code. Your repository can be either private or public for Flightcontrol to work. Using your GitHub Repositoryįlightcontrol works with GitHub repositories to deploy your code base. It's a good idea to use the same database for local development and cloud deployment, so we recommend using Postgres (or MySQL or MariaDB) for both. You can't use SQLite as your database with Flightcontrol, because it's not supported on Amazon's Relational Database Service (RDS). If you don't have a Rails application to deploy yet, you can visit our Create a Rails Application guide.Īt the end of the tutorial, you will have a Rails web application running on AWS, and you will have learned how to use Flightcontrol to deploy your own Rails applications. This tutorial takes you through the process of deploying a Ruby on Rails web application to Amazon Web Services (AWS) with Flightcontrol. Rails Deployment Getting Started with Ruby on Rails on Flightcontrol
0 Comments
Leave a Reply. |