Getting Started
Learn how to set up Hydra Deploy and complete your first deployment.
What You Need
Before getting started with Hydra Deploy, you’ll need:
- An account on Hydra Deploy
- Access to a server where you can install the Hydra Deploy agent
- An application you want to deploy
Install the Hydra Deploy Agent
The Hydra Deploy Agent is a small application that runs on your server and executes deployment scripts.
Step 1: Download the Agent
Download the agent from our GitHub repository. Extract it to a folder on your server.
Step 2: Create an Agent in Hydra Deploy
- Go to Settings > Agents
- Click on Create Agent
- Give the agent a name (e.g., “Production Server”)
- You will receive a unique agent key
Step 3: Start the Agent
Start the agent executable with the received key:
Linux:
./agent --agent-key <your-agent-key>Windows:
agent.exe --agent-key <your-agent-key>Step 4: Verify the Connection
After starting, the agent’s status should appear as “online” in the Hydra Deploy interface.
First Deployment
Step 1: Create an Application
- Go to Applications
- Click on Create New App
- Fill in the information:
- Name - A unique name for the application (e.g., “User Service”)
- Code - A unique code for identification (auto-generated based on name)
- Description - An optional description of what the application does
- Optionally upload an image or icon
- Click on Create
Step 2: Define the Deployment Script
- Go to the application page
- Navigate to the Deploy Script tab
- Write a script that deploys your application:
- Linux: use Bash
- Windows: use PowerShell
Example for a Node.js application:
#!/bin/bash
# Stop the current application
pm2 stop my-app
# Install dependencies
npm install
# Start the application
pm2 start npm --name my-app -- startStep 3: Create a Version
- Go to the Versions tab of your application
- Click on Create Version
- Enter the version number (e.g., “v1.0.0” or “1.0.0”)
Step 4: Create a Project
- Go to Projects
- Click on Create Project
- Give the project a name
Step 5: Configure Environments
- Go to Settings > Environments
- Create environments (e.g., Development, Staging, Production)
- Drag environments to determine the order (determines display in deploy page)
Step 6: Connect the Agent to the Project
- Go to your project page
- Navigate to the Agents tab
- Select the agent and connect it to the appropriate environments
- Save the connection
Step 7: Deploy your Application
- Go to the Deployments overview
- Or go to your project page
- Click on Deploy next to the desired version and environment
- Confirm the deployment
- The agent will execute the deployment script
Next Steps
Now that you’ve completed your first deployment, you can explore:
- Configurations - Define configuration files for your applications
- Team Management - Invite team members and manage permissions
- Deployment History - View deployment history and logs
- Auto Deploy Rules - Automate deployments based on rules
Troubleshooting
Agent Not Coming Online
Check the following:
- Is the agent key correct?
- Does the server have internet access?
- Is the firewall blocking the connection?
Deployment Failed
Check the deployment logs in the deployment details page. Check:
- Is the deployment script correct?
- Does the agent have sufficient permissions?
- Are all required tools installed on the server?