"""Production server for GoldBuy.

Run with:  python serve.py
Set these environment variables first:
  SECRET_KEY      - long random string (sessions break without a stable one)
  ADMIN_PASSWORD  - fallback admin password for /admin/login
"""
from waitress import serve

from app import app

if __name__ == "__main__":
    print("GoldBuy running on http://0.0.0.0:8080")
    serve(app, host="0.0.0.0", port=8080, threads=8)
