
Create an application
Start by verifying that you have Rails installed, and then by creating a new application:Scaffold to Success
Real Rails applications store data in databases, and Rails scaffolding makes it easy to get started. We are going to start with the simplest table possible, add a small bit of CSS to make the display a bit less ugly, and finally adjust our routes so that the main page is the index page for our new table.Scaffold and style a list of names
Since we are focusing on fly deployment rather than Rails features, we will keep it simple and create a single table with exactly one column:app/assets/stylesheets/application.css:
config/routes.rb, and connect the root with the names index:
Launch
To configure and launch the app, you can usefly launch and follow the
wizard. Fly.io will automatically detect that Postgres is required by
your application.