LogoPly
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.go

Behind 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:

  • systemd (recommended for Linux)
  • PM2 (Node.js process manager)
  • Docker container runtime

Monitoring and logging

Integrate with: