Smeltery
Get started

Deployment

v0.1

Checklist

  • smeltery build on Linux; binary, public/ (with app.css), storage/, database/ on the server
  • a myapp system user; only storage/ and database/ writable (750); .env 640 root:myapp; UMask=0027 in the unit
  • .env: APP_ENV=production, APP_DEBUG=false, APP_URL=https://…, a new APP_KEY, SERVER_HOST=127.0.0.1, TRUSTED_PROXIES=127.0.0.1, LOG_LEVEL=info, SESSION_DRIVER=database, MAIL_MAILER=smtp with the MAIL_* keys, DATABASE_URL
  • WATCHFIRE_DASHBOARD=auth with a dashboard_gate, or off
  • migrate --force, the public/storage link
  • the systemd unit enabled (enable --now), curl http://127.0.0.1:8000/up answers OK
  • Caddy or nginx with HTTPS; client_max_body_size at least UPLOAD_MAX_BYTES; the event streams unbuffered
  • two processes only with a shared CACHE_STORE (database, redis, memcached); the pubsub_messages table (new apps with Watchfire have it, others get it from smeltery pubsub:install) unless CACHE_STORE=redis
  • with QUEUE_DRIVER=redis: maxmemory-policy noeviction (or volatile-*) on the Redis server, persistence (RDB or AOF) that fits how many jobs may be lost, and a QUEUE_PREFIX per app that does not overlap CACHE_PREFIX
  • an uptime monitor on /up; backups of .env, the database and storage/app/

↑↓ moveEnter openEsc close