Binary Deploy
Download
Section titled “Download”Get the binary for your platform from GitHub Releases.
Configure
Section titled “Configure”Create /etc/rcommerce/config.toml:
[server]host = "0.0.0.0"port = 8080
[database]db_type = "Postgres"host = "localhost"port = 5432database = "rcommerce"username = "rcommerce"password = "your_password"
[security.jwt]secret = "change-this-to-a-random-string"rcommerce serve -c /etc/rcommerce/config.tomlMigrations run automatically on startup.
Systemd service
Section titled “Systemd service”Create /etc/systemd/system/rcommerce.service:
[Unit]Description=rCommerce API ServerAfter=network.target postgresql.service
[Service]Type=simpleUser=rcommerceExecStart=/usr/local/bin/rcommerce serve -c /etc/rcommerce/config.tomlRestart=alwaysRestartSec=5Environment=RUST_LOG=info
[Install]WantedBy=multi-user.targetsudo systemctl daemon-reloadsudo systemctl enable rcommercesudo systemctl start rcommerceReverse proxy
Section titled “Reverse proxy”Use Caddy, Nginx, or Traefik in front of the binary:
api.example.com { reverse_proxy localhost:8080}Monitoring
Section titled “Monitoring”Health check endpoint: GET /health
Metrics (if enabled): GET /metrics (Prometheus format)