Skip to main content

Deploying Your First Application

This guide walks you through deploying your first application using O1’s powerful deployment capabilities. We’ll deploy Anvil, a popular Ethereum development node, as our example.

Prerequisites

  • O1 backend service running (see Getting Started)
  • At least one node configured and accessible
  • SSH keys configured for the target node

Step 1: Verify Your Environment

First, ensure your O1 environment is ready:

Step 2: Create the Application Specification

Before deploying, we need to create an application specification. Let’s create a spec for Anvil:

Step 3: Check Available Deployment Modes

Anvil supports both Docker and binary deployments. Let’s check what’s available:
You should see a response like:

Step 4: Create a Deployment

Now let’s deploy Anvil using binary mode:
Response:

Step 5: Monitor the Deployment

Use the deployment ID to monitor progress:

Option 1: WebSocket Real-time Monitoring

O1 provides real-time deployment monitoring via WebSocket. Open a WebSocket connection:

Option 2: Check Deployment Status

You can also check the deployment status via API:

Step 6: Verify the Deployment

Once deployment completes, verify everything is working:

Step 7: Set Up Monitoring

Set up monitoring to keep track of your application:

Step 8: View Application Logs and Metrics

Monitor your application’s performance:

Common Deployment Scenarios

Deploying with Docker

If you prefer Docker deployment:

Deploying with Custom Configuration

For more complex configurations:

Troubleshooting

Deployment Fails

If deployment fails, check the following:

Application Not Starting

If the application doesn’t start properly:

Next Steps

Congratulations! You’ve successfully deployed your first application with O1. Here’s what to explore next: Remember to regularly monitor your deployed applications and set up appropriate alerts to ensure they remain healthy and performant.