TokenWatch Deployment for Jannik-Cloud
To deploy TokenWatch to your Jannik-Cloud, follow these steps:
- Push the
TokenWatchrepository to GitHub (github.com/orfelorfel23/TokenWatch). - The included GitHub Action (
.github/workflows/docker.yml) will automatically build the Docker image and push it toghcr.io/orfelorfel23/tokenwatch:latest. - In your
Jannik-Cloudrepository, copy the contents of thisdeployment-templatedirectory intoservices/tokenwatch/. - Run
bash generate-env.shinsideservices/tokenwatch/on your server to generate the database credentials. - Commit
.env.age,docker-compose.yml,tokenwatch.caddy, andservice.enabledtoJannik-Cloud. - Run
sudo bash deploy_script.shon the server!
Local Sync Setup: On your Windows PC where Antigravity IDE runs, open the Windows Task Scheduler.
- Create a new task that runs every 30 minutes.
- Action: Start a program
- Program:
powershell - Arguments:
-ExecutionPolicy Bypass -File "C:\GitHub\TokenWatch\Push-AntigravityQuota.ps1"
Before running it for production, edit C:\GitHub\TokenWatch\tokenwatch-sync.js locally and change the url to point to your new cloud endpoint:
const url = 'https://tokenwatch.orfel.de/api/webhook/antigravity';