Quickstart
This guide walks you through your first deployment on Reoclo. You’ll install the GitHub App, add a server, create an application, and deploy. The entire process takes under 10 minutes.
Prerequisites
Section titled “Prerequisites”Before you start, make sure you have:
- A GitHub account with admin access to at least one repository
- A Linux server with Docker, git, and curl installed
- The ability to run commands on the server (to install the Runner agent)
Step 1: Get Your Account
Section titled “Step 1: Get Your Account”Your organization is provisioned by the Reoclo team during onboarding. Once your account is set up, log in at app.reoclo.com with the credentials provided by your administrator.
If you belong to multiple organizations, you’ll see an organization picker after login. Select the organization you want to work in.
Step 2: Install the GitHub App
Section titled “Step 2: Install the GitHub App”Reoclo uses a GitHub App to receive push webhooks and generate short-lived clone tokens. No long-lived credentials are stored.
- Go to Settings → Integrations in the dashboard.
- Click Install GitHub App.
- You’ll be redirected to GitHub. Select the repositories you want to deploy. You can choose all repositories or specific ones.
- Click Install & Authorize.
Reoclo will now receive push events from the selected repositories. When you push to a configured branch, Reoclo will automatically trigger a deployment.
Step 3: Add a Server
Section titled “Step 3: Add a Server”Servers are the deployment targets. Reoclo uses a Runner agent installed on your server that connects outbound to Reoclo via WebSocket. No inbound ports are required.
- Go to Servers → Add Server in the dashboard.
- Provide a Name for the server.
- Click Generate Registration Token.
- Copy the install command and run it on your server:
curl -fsSL https://get.reoclo.com/install.sh | bash -s -- <your-token>The install script will:
- Download the Runner binary
- Install a systemd service (
reoclo-runner.service) - Register the Runner with Reoclo via WebSocket
Once the Runner connects, the server status will change to ACTIVE.
Step 4: Create an Application
Section titled “Step 4: Create an Application”Applications map a GitHub repository, branch, and Dockerfile to a server. They also include runtime configuration like environment variables, port mappings, and health check paths.
- Go to Applications → New in the dashboard.
- Select the Repository you want to deploy. Only repositories linked via the GitHub App will appear.
- Select the Branch to deploy (e.g.,
mainorproduction). - Select the Server to deploy to.
- Configure the application:
- Dockerfile Path: Path to the Dockerfile in your repository. Defaults to
./Dockerfile. - Container Port: The port your application listens on inside the container (e.g.,
3000). - Health Check Path: The HTTP path to poll for health checks (e.g.,
/healthor/). Reoclo willcurlthis path after starting the container. - Environment Variables: Add any environment variables your application needs. These are encrypted at rest and injected into the container at runtime.
- Dockerfile Path: Path to the Dockerfile in your repository. Defaults to
- Click Create Application.
Your application is now ready to deploy.
Step 5: Deploy
Section titled “Step 5: Deploy”You can deploy manually or automatically on git push.
Manual Deploy
Section titled “Manual Deploy”- Go to Applications in the dashboard.
- Click on your application.
- Click Deploy.
Reoclo will schedule the deployment and run the pipeline on your server.
Auto-Deploy on Git Push
Section titled “Auto-Deploy on Git Push”If you want deployments to trigger automatically when you push to the configured branch:
- Go to your application’s detail page.
- Enable Auto-Deploy in the settings.
- Push to the configured branch.
Reoclo will receive the push webhook from GitHub and trigger a deployment automatically.
Step 6: Monitor the Deployment
Section titled “Step 6: Monitor the Deployment”The deployment will go through the following states:
- PENDING: Scheduled, waiting for execution.
- RUNNING: The deployment pipeline is executing on your server.
- SUCCEEDED: The deployment completed successfully. The new container is running.
- FAILED: The deployment failed. The old container was restarted (if it existed).
You can view deployment logs in the dashboard. Click on a deployment to see the full log output.
What Happens During Deployment
Section titled “What Happens During Deployment”The deployment pipeline runs on your server:
- Precheck: Verify
git,docker, andcurlare installed. - Clone: Securely clone the repo onto the target server using a short-lived token.
- Build: Run
docker builddirectly on the target server. Images are built locally. No central registry. - Deploy: Stop the existing container (if any), start the new one with environment variables. Blue-green swap within the same host.
- Health Check: Poll the configured health check path via
curlon the server. Retry up to 10 times with exponential backoff. - Cleanup/Rollback: On success, remove the old container. On failure, restart the old container and mark the deployment
FAILED.
All builds happen on your server. Images never leave the target host.
What’s Next
Section titled “What’s Next”You’ve deployed your first application on Reoclo. Here’s what to explore next:
- Core Concepts: Understand organizations, servers, applications, and deployments in depth
- Servers Overview: Learn about server lifecycle, health monitoring, and connection types
- Deployments Overview: Understand the deployment pipeline and rollback behavior
- Deployment Configuration: Configure environment variables, health checks, and Docker build options
- Security: Learn about encryption, access control, and security best practices
If you run into issues, check the deployment logs in the dashboard or contact support.