RUN
How to run the binary
After a successful compile, download the artifact ZIP. It contains the binary, manifest, logs, and run instructions. On Linux, usually unzip it and grant execute permission.
CLI or simple run
unzip php2go-build-123.zip -d build
cd build
chmod +x app-server
./app-server
Web server
APP_ENV=production APP_PORT=8080 ./app-server
curl http://127.0.0.1:8080/healthz
Nginx in front of the binary
In production, run the binary on a localhost port and let Nginx proxy HTTP requests while serving static files directly.