Deployment
Production
How to deploy and run Ply in production environments.
Production setup
To run Ply in production environments, follow these steps:
Requirements
-
Go 1.26 or newer is required (fasthttp 1.77).
-
Ply runs on fasthttp and adds routing, middleware and context handling. The HTTP engine, parser and writer are fasthttp; Ply sits above them.
Build the app
go build -o app main.goBehind a reverse proxy
Use a reverse proxy to handle TLS, compression, and more:
Example (Nginx):
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}Process management
Keep your app running with:
Monitoring and logging
Integrate with:
- Prometheus for metrics
- Grafana for dashboards
- Logging systems like Loki or Logtail

Ply