APSO Cloud
APSO Cloud is the fastest way to deploy your APSO backend. Get a production-ready API in minutes with automatic scaling, SSL, and monitoring.
Features
| Feature | Included |
|---|---|
| Automatic SSL | âś… |
| Auto-scaling | âś… |
| Managed database | âś… |
| Automatic backups | âś… |
| Monitoring & logs | âś… |
| Custom domains | âś… |
| Preview environments | âś… |
Quick Start
1. Install CLI
npm install -g @apso/cli2. Login
apso login3. Deploy
apso deployYour API is now live at https://your-project.apso.cloud
Project Configuration
apso.config.json
{
"name": "my-api",
"region": "us-east-1",
"plan": "pro",
"scaling": {
"minInstances": 1,
"maxInstances": 10
},
"database": {
"size": "small"
}
}Available Regions
| Region | Location |
|---|---|
us-east-1 | Virginia, USA |
us-west-2 | Oregon, USA |
eu-west-1 | Ireland |
eu-central-1 | Frankfurt |
ap-southeast-1 | Singapore |
Environment Variables
Via CLI
# Set a variable
apso env set DATABASE_URL="postgresql://..."
# Set multiple variables
apso env set JWT_SECRET="secret" NODE_ENV="production"
# List variables
apso env list
# Remove a variable
apso env unset OLD_VARIABLEVia Dashboard
- Go to your project in the APSO Dashboard
- Navigate to Settings → Environment Variables
- Add or edit variables
- Changes deploy automatically
Custom Domains
Add Domain
apso domains add api.yourdomain.comConfigure DNS
Add a CNAME record pointing to your APSO endpoint:
api.yourdomain.com → your-project.apso.cloudSSL Certificate
SSL certificates are provisioned automatically via Let’s Encrypt.
Deployments
Manual Deploy
# Deploy current branch
apso deploy
# Deploy specific branch
apso deploy --branch main
# Deploy with message
apso deploy -m "Add new feature"Preview Environments
# Create preview for PR
apso deploy --preview
# Preview URL format
# https://your-project-pr-123.apso.cloudRollback
# List recent deployments
apso deployments list
# Rollback to previous
apso rollback
# Rollback to specific deployment
apso rollback d-abc123Scaling
Automatic Scaling
APSO Cloud automatically scales based on traffic:
{
"scaling": {
"minInstances": 1,
"maxInstances": 10,
"targetCPU": 70,
"scaleUpThreshold": 80,
"scaleDownThreshold": 30
}
}Manual Scaling
# Set minimum instances
apso scale --min 2
# Set maximum instances
apso scale --max 20Database
Managed PostgreSQL
APSO Cloud includes managed PostgreSQL:
# View connection details
apso db info
# Connect via psql
apso db connect
# Run migrations
apso db migrate
# Create backup
apso db backup
# Restore from backup
apso db restore backup-20240101Database Sizes
| Size | RAM | Storage | Connections |
|---|---|---|---|
| micro | 256MB | 1GB | 20 |
| small | 1GB | 10GB | 50 |
| medium | 4GB | 50GB | 100 |
| large | 16GB | 200GB | 200 |
Monitoring
Logs
# Stream live logs
apso logs
# View recent logs
apso logs --since 1h
# Filter logs
apso logs --level errorMetrics
Access via dashboard:
- Request count and latency
- Error rates
- CPU and memory usage
- Database connections
- Response times by endpoint
Alerts
Configure alerts for:
- High error rates
- Slow response times
- Resource exhaustion
- Failed deployments
CI/CD Integration
GitHub Actions
# .github/workflows/deploy.yml
name: Deploy to APSO Cloud
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install APSO CLI
run: npm install -g @apso/cli
- name: Deploy
run: apso deploy --token ${{ secrets.APSO_TOKEN }}Deploy Tokens
# Create deploy token
apso tokens create --name "GitHub Actions"
# Add to GitHub secrets as APSO_TOKENPricing
| Plan | Price | Features |
|---|---|---|
| Free | $0/mo | 1 project, 1M requests |
| Pro | $25/mo | Unlimited projects, 10M requests |
| Team | $100/mo | Team features, 100M requests |
| Enterprise | Custom | SLA, dedicated support |
Related
Last updated on