76bd288bf6
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1.8 KiB
1.8 KiB
Coolify Deployment — Quick Steps
1. Upload the project
Put this folder in a Git repository, or upload it to the server where Coolify can build it.
2. Create the Coolify application
Use Dockerfile deployment (simplest) or the included docker-compose.yml.
3. Set environment variables
NODE_ENV=production
PORT=3000
ADMIN_PASSWORD=YOUR-LONG-UNIQUE-PASSWORD
DATA_DIR=/app/data
ADMIN_PASSWORD is required for the /admin sponsor manager. Do not leave it as changeme.
4. Persist /app/data
Create a persistent volume mounted at:
/app/data
This preserves the sponsor queue and settings across deployments/restarts.
5. Add the domain
Attach your chosen domain/subdomain in Coolify and point it to container port 3000.
Suggested pattern:
team.yourdomain.com
Coolify can handle the reverse proxy and TLS certificate.
6. Verify the public pages
/— evergreen bridge page/start— live sponsor/onboarding page/admin— sponsor manager/health— returns{ "ok": true }
7. Configure before advertising
In /admin:
- Confirm the current active sponsor.
- Confirm the RM dApp referral base URL.
- Set the team support/Telegram URL if desired.
- Confirm Premium entry is 362 POL.
- Open
/startin an incognito window and click the join button to verify the final referral ID.
8. Normal rotation workflow
- Current sponsor receives a verified direct.
- In
/admin, click +1 Direct. - When the second direct is verified, click Qualified.
- The next waiting sponsor automatically becomes active.
/startchanges immediately; advertising links do not change.
Important
The app intentionally does not auto-rotate based on ad clicks. Always verify actual RM Circle placement before marking a sponsor qualified.