mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
Refactor project structure and update references from Light60-1 to Obsidian-wtf
- Changed working directory in Dockerfile from /usr/src/microsoft-rewards-script to /app - Updated Docker container name and service name from microsoft-rewards-script to microsoft-rewards-bot - Modified LICENSE, NOTICE, README.md, and other documentation files to reflect new project ownership - Updated package.json and package-lock.json to change project name and repository links - Adjusted entrypoint script and Docker Compose configurations for new paths - Updated security and login handling in source code to reflect new documentation URLs - Changed logo asset to reflect new branding
This commit is contained in:
@@ -21,7 +21,7 @@ docker compose up -d
|
||||
### 3. View Logs
|
||||
|
||||
```bash
|
||||
docker logs -f microsoft-rewards-script
|
||||
docker logs -f microsoft-rewards-bot
|
||||
```
|
||||
|
||||
**That's it!** Script runs automatically.
|
||||
@@ -80,7 +80,7 @@ docker run -e ACCOUNTS_FILE=/custom/path/accounts.json ...
|
||||
docker compose up -d
|
||||
|
||||
# View logs
|
||||
docker logs -f microsoft-rewards-script
|
||||
docker logs -f microsoft-rewards-bot
|
||||
|
||||
# Stop container
|
||||
docker compose down
|
||||
@@ -108,16 +108,16 @@ docker compose restart
|
||||
|
||||
```bash
|
||||
# Enter container shell
|
||||
docker exec -it microsoft-rewards-script /bin/bash
|
||||
docker exec -it microsoft-rewards-bot /bin/bash
|
||||
|
||||
# Check Node.js version
|
||||
docker exec -it microsoft-rewards-script node --version
|
||||
docker exec -it microsoft-rewards-bot node --version
|
||||
|
||||
# View config (mounted in /src/)
|
||||
docker exec -it microsoft-rewards-script cat src/config.jsonc
|
||||
docker exec -it microsoft-rewards-bot cat src/config.jsonc
|
||||
|
||||
# Check if cron is enabled
|
||||
docker exec -it microsoft-rewards-script printenv | grep USE_CRON
|
||||
docker exec -it microsoft-rewards-bot printenv | grep USE_CRON
|
||||
```
|
||||
|
||||
---
|
||||
@@ -197,12 +197,12 @@ docker compose up -d
|
||||
4. **Verify cron is running:**
|
||||
```bash
|
||||
# Check container logs
|
||||
docker logs -f microsoft-rewards-script
|
||||
docker logs -f microsoft-rewards-bot
|
||||
|
||||
# Should see: "==> Cron mode enabled"
|
||||
|
||||
# View cron logs inside container
|
||||
docker exec microsoft-rewards-script tail -f /var/log/cron.log
|
||||
docker exec microsoft-rewards-bot tail -f /var/log/cron.log
|
||||
```
|
||||
|
||||
### Option 3: Single Run (Manual)
|
||||
@@ -244,7 +244,7 @@ services:
|
||||
|
||||
```bash
|
||||
# Enter container
|
||||
docker exec -it microsoft-rewards-script /bin/bash
|
||||
docker exec -it microsoft-rewards-bot /bin/bash
|
||||
|
||||
# Check cron is running
|
||||
ps aux | grep cron
|
||||
|
||||
Reference in New Issue
Block a user