Quickstart
Install the CLI, set forkrail up in your AWS account, and deploy a preview and then production. It takes about 20 minutes, most of it waiting.
Before you start
- An AWS account where you can sign in as an administrator or the root user (the root user needs MFA turned on).
- A domain whose DNS is on Cloudflare. The free plan is enough. Your apps get names under it, like
my-app.example.com. - A GitHub account. You and your team sign in to the dashboard with it.
You don’t need Docker, Rust or the AWS CLI. Install forkrail covers every requirement and option in detail.
Install and set up
- 1Install the CLI
On macOS or Linux, run the install script. On Windows, use PowerShell:
irm https://forkrail.com/install.ps1 | iex. On a Mac you can also download the app fromforkrail.com/download/mac, which runs the same installer in a window.curl -fsSL https://forkrail.com/install | sh - 2Run the installer
A page opens in your browser. Sign in to AWS, answer a few questions (domain, region, alert email, Cloudflare token) and click once on GitHub to create your install’s GitHub App. The installer checks the account before it changes anything, then sets everything up on its own in about 15 minutes.
forkrail install - 3Open the dashboard
When it finishes, open
https://dashboard.<your domain>and choose Continue with GitHub. Whoever created the GitHub App is the install’s first owner. - 4Sign in the CLI
This links your terminal to the install. A page opens where you approve it with your GitHub sign-in. No AWS keys are needed for day-to-day work.
forkrail login https://dashboard.example.com
Deploy your first app
- 1Deploy a preview
Run
forkrailin your project’s folder (it’s short forforkrail deploy). forkrail finds the framework, uploads the source, builds it in your account and prints a preview URL. The project is named after the folder unless you pass--project.cd ~/code/my-appforkrail# Preview: https://my-app-9f4a2d1c.example.com - 2Ship it to production
Add
--prod. The production URL ishttps://<project>.<your domain>, and you can add your own domain to it later.forkrail --prod# Production: https://my-app.example.com - 3Roll back if you need to
Production moves back to the previous production deployment in about five seconds, without a rebuild.
forkrail rollback my-app
In the dashboard choose New project, Import a repository, and click Deploy. From then on every push deploys: branches to previews and the production branch to production. See Deploy from GitHub.