# Cron Triggers
# Docs: https://developers.cloudflare.com/workers/platform/triggers/cron-triggers/
# Configuration: https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
[triggers]
crons = ["* * * * *"] # * * * * * = run every minute
"scripts": {
"deploy": "wrangler deploy",
"dev": "wrangler dev",
"start": "wrangler dev",
"start-job": "wrangler dev --test-scheduled"
}
curl "http://localhost:8787/__scheduled?cron=*+*+*+*+*"
[[ d1_databases ]]
binding = "DB" # available in your Worker on `env.DB`
database_name = "d1"
database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
npm install wrangler --g
wrangler d1 execute d1 --command "SELECT name FROM sqlite_schema WHERE type ='table'"
echo "# tunnel_monitor" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/joaosgomes/tunnel_monitor.git
git push -u origin main
GitHub Actions allow us to run workflows on any GitHub actions. Config file at .github/workflows/workers-deploy.yml.