This commit is contained in:
luk
2026-07-31 08:38:36 +08:00
parent b960b5ed6c
commit e6b31fa5bf

View File

@@ -1,11 +1,20 @@
Preparation:
``` ```
npm i npm i
npx playwright install-deps npx playwright install-deps
npx playwright install chromium npx playwright install chromium
HEADLESS=true node renew.mjs 'email' 'password'
``` ```
add to crontab to run automatically: Run the script with:
`node renew.mjs 'EMAIL' 'PASSWORD'`
you can also set environment variables directly:
`HEADLESs=true UNICLOUD_EMAIL=... UNICLOUD_PASSWORD=... node renew.mjs`
or set via `.env` file.
Add to crontab to run automatically:
``` ```
# Renew DCloud uniCloud free-tier subscriptions. # Renew DCloud uniCloud free-tier subscriptions.