
CapRover Has a Free API That Gives You Your Own Heroku on Any VPS
CapRover is the open-source PaaS that turns any VPS into a Heroku-like platform. One-click apps, automatic HTTPS, Docker support, and a REST API for automation. What Is CapRover? CapRover is a self-hosted PaaS (Platform as a Service). Install it on a $5 VPS and get unlimited app deployments with automatic SSL, Docker, and a web dashboard. Quick Start # Install on any Ubuntu VPS docker run -p 80:80 -p 443:443 -p 3000:3000 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /captain:/captain \ caprover/caprover The API Authentication # Login and get token export CAPROVER_URL = "https://captain.your-domain.com" TOKEN = $( curl -s -X POST " $CAPROVER_URL /api/v2/login" \ -H 'Content-Type: application/json' \ -d '{"password": "captain42"}' | jq -r '.data.token' ) Create an App curl -s -X POST " $CAPROVER_URL /api/v2/user/apps/appDefinitions/register" \ -H "x-captain-auth: $TOKEN " \ -H 'Content-Type: application/json' \ -d '{"appName": "my-api", "hasPersistentData": false}' Deploy from Dock
Continue reading on Dev.to DevOps
Opens in a new tab

