Matheus
Technical Content @ Serverfy
Before You Start
To follow this guide, you'll need:
- A Serverfy account (sign up takes 30 seconds)
- An API key from your cloud provider (DigitalOcean, AWS, Hetzner, Vultr, Linode, or UpCloud)
- A Laravel application in a GitHub, GitLab, or Bitbucket repository
Step 1: Connect Your Cloud Provider (1 minute)
After logging in, navigate to Settings → Cloud Providers and paste your API key. Serverfy validates the credentials instantly — no waiting.
Step 2: Provision a Server (5 minutes)
Click Create Server, choose your provider, region, and size. Serverfy automatically installs and configures:
- Nginx — optimized for Laravel
- PHP 8.3 — with OPcache and required extensions
- MySQL 8 or PostgreSQL 16
- Redis — for cache and queues
- UFW firewall + Fail2ban + SSH hardening
The entire server is provisioned and secured in about 5 minutes. No SSH needed.
Step 3: Create a Site & Connect Git (2 minutes)
On your server dashboard, click Add Site. Enter your domain, select your repository, and choose the branch to deploy from. Serverfy automatically:
- Configures the Nginx virtualhost
- Issues a free SSL certificate via Let's Encrypt
- Sets up your deployment pipeline
Step 4: Deploy (1 minute)
Click Deploy. Serverfy runs your deployment pipeline:
- Pulls the latest code from your repository
- Runs
composer install --no-dev - Runs
php artisan migrate --force - Builds assets if configured
- Swaps the release atomically — zero downtime
If anything fails, Serverfy automatically rolls back to the previous working release.
Step 5: Set Up Auto-Deploy (30 seconds)
Enable Auto Deploy on your site settings. Now, every push to your deploy branch triggers an automatic zero-downtime deployment. Your CI/CD pipeline is ready.
What You Just Configured
| Component | Status |
|---|---|
| Cloud server | ✅ Provisioned & secured |
| SSL certificate | ✅ Issued & auto-renewing |
| Git integration | ✅ Connected |
| Zero-downtime deploys | ✅ Active |
| Automatic rollback | ✅ Enabled |
| Server monitoring | ✅ Collecting metrics |
That's it. Your Laravel app is live, secured, and deploying automatically. No DevOps engineer required.