- Create a free Render account
- Go to Dashboard
- Click on New Web Service
- Paste
https://github.com/XAMPPRocky/tokei_rsinto theEnter a public repository URLfield - Fill in these fields with the following values
Name:tokeiEnvironment:RustRegion:<Choose the nearest region to your geographical area>Build Command:cargo build --release --jobs 1Start Command:cargo run --release --jobs 1- Leave everything else as the default; the free plan is good enough. 😄
- Finally, click
Create Web Serviceand wait for it to compile ⏱️
Follow instructions at the tokei_rs repository; substitute tokei.rs with your Render server URL.
In deploy.yml, sometimes the default ${{ secrets.GITHUB_TOKEN }} may not work well with ghcr.io.
A workaround would be to fork tokei_rs, create a GitHub Personal Access Token with write:packages access enabled, no expiry date, and add it as a secret to your fork (e.g. ${{ secrets.PERSONAL_ACCESS_TOKEN }}).
Deploy your fork instead of https://github.com/XAMPPRocky/tokei_rs to Render.
You can keep the web service alive by making a GET request every 10 minutes to your tokei web service.
This can be done with a Raspberry Pi or similar low-powered computer, curl, and crontab.
XAMPPRocky/tokei#881 (comment) by https://github.com/ekzhang