Mindfree Automated Delivery System
| # | Project | Branch | Commit | Deployed at (UTC) |
|---|---|---|---|---|
| 2 | smartonlineoffer-api | main | 47064bd | 2026-07-10 12:56:32 |
| 1 | smartonlineoffer-api | main | f913cb6 | 2026-07-06 14:09:17 |
On GitHub, click "Use this template" → "Create a new repository". Set the owner to Mindfree-2 and make the repo private — the self-hosted runner only works on private repositories.
Every push to any branch triggers the CI/CD pipeline automatically within ~2 minutes. Each branch gets its own isolated URL:
main → {project}.mindfree.infostaging → {project}.staging.mindfree.info{branch}.{project}.dev.mindfree.infoAdd routes in src/routes/index.js. For larger apps, split into multiple
router files and mount them in src/app.js.
Place files in /opt/mindfree/secrets/{project}/ on the server.
Secrets are injected at deploy time and available via process.env.
| Route | Description |
|---|---|
GET / | This welcome page — replace with your application’s home |
GET /health | Health check — returns ok |
GET /test-secret | Verify secrets injection — expects TEST_SECRET in default.env |
GET /test-storage | Verify /data persistence across redeploys |
nodejs-template/ ├── src/ │ ├── server.js ← entry point, Unix socket binding │ ├── app.js ← Express setup, middleware, routes │ ├── db.js ← PostgreSQL pool (add your queries here) │ └── routes/ │ └── index.js ← add your routes here ├── package.json ← Node.js dependencies └── Dockerfile ← container build