Compare commits
12 commits
79c4918df2
...
c0de93736d
| Author | SHA1 | Date | |
|---|---|---|---|
| c0de93736d | |||
| 82408bd21f | |||
| afa99a8050 | |||
| e3390b8dd5 | |||
| 0e12e7a326 | |||
| 399b873017 | |||
| 13cb2fe521 | |||
| 05a74d48d8 | |||
| fd98fdad28 | |||
| 38211bec59 | |||
| e437ce2234 | |||
| 011f8698a8 |
6 changed files with 63 additions and 4 deletions
39
PROMPT.md
39
PROMPT.md
|
|
@ -145,6 +145,45 @@ gb/
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 🚀 BOTSERVER RUN LOOP - MANDATORY FOR RUNTIME FIXES
|
||||||
|
|
||||||
|
```
|
||||||
|
LOOP UNTIL botserver starts successfully:
|
||||||
|
1. cargo build -p botserver 2>&1 | tail -20
|
||||||
|
2. IF build fails → fix errors → CONTINUE LOOP
|
||||||
|
3. cd botserver && timeout 30 ../target/debug/botserver --noconsole 2>&1 | head -80
|
||||||
|
4. Analyze output for errors/warnings
|
||||||
|
5. Fix issues in code
|
||||||
|
6. CONTINUE LOOP
|
||||||
|
END LOOP
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run Commands
|
||||||
|
```bash
|
||||||
|
# Build botserver only
|
||||||
|
cargo build -p botserver 2>&1 | tail -20
|
||||||
|
|
||||||
|
# Run from botserver directory (required for .env and botserver-stack paths)
|
||||||
|
cd botserver && timeout 30 ../target/debug/botserver --noconsole 2>&1 | head -80
|
||||||
|
|
||||||
|
# Check specific component logs
|
||||||
|
cat botserver/botserver-stack/logs/drive/minio.log
|
||||||
|
cat botserver/botserver-stack/logs/vault/vault.log
|
||||||
|
|
||||||
|
# Test vault credentials manually
|
||||||
|
cd botserver && export $(cat .env | grep -v '^#' | xargs) && \
|
||||||
|
./botserver-stack/bin/vault/vault kv get -format=json secret/gbo/drive
|
||||||
|
```
|
||||||
|
|
||||||
|
### Key Paths (relative to gb/)
|
||||||
|
- Binary: `target/debug/botserver`
|
||||||
|
- Run from: `botserver/` directory
|
||||||
|
- Env file: `botserver/.env`
|
||||||
|
- Stack: `botserver/botserver-stack/`
|
||||||
|
- Logs: `botserver/botserver-stack/logs/<component>/`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Development Workflow
|
## Development Workflow
|
||||||
|
|
||||||
### The Loop
|
### The Loop
|
||||||
|
|
|
||||||
2
botbook
2
botbook
|
|
@ -1 +1 @@
|
||||||
Subproject commit d5d147ce0ce54e9d6519440b87bb4dea5ddcfecc
|
Subproject commit e142a898f025fb277da185f5472a406b7740b783
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit c8da129b4ce7da8d744125e90adc53e9612a2e7f
|
Subproject commit 41e2512a620eaf7f51d25b8083271f5905824a1b
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 98fb0b31a6e14aefbd6c77cf41dda2028b64dfda
|
Subproject commit 5adb6efec4a5b92be1ce7965e6da7118984ed2d7
|
||||||
2
botui
2
botui
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3f95c4645d69b68186849e5aac68c433e93bd545
|
Subproject commit ea9bd091c33c16b6863628d8d6cb923b2c3f878e
|
||||||
20
config/directory_config.json
Normal file
20
config/directory_config.json
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"base_url": "http://localhost:8300",
|
||||||
|
"default_org": {
|
||||||
|
"id": "353226116074307598",
|
||||||
|
"name": "default",
|
||||||
|
"domain": "default.localhost"
|
||||||
|
},
|
||||||
|
"default_user": {
|
||||||
|
"id": "admin",
|
||||||
|
"username": "admin",
|
||||||
|
"email": "admin@localhost",
|
||||||
|
"password": "",
|
||||||
|
"first_name": "Admin",
|
||||||
|
"last_name": "User"
|
||||||
|
},
|
||||||
|
"admin_token": "XzjmsXoVy7mDKK8gyWtJNp3w3enVW3EKGPdfLbz0nX9vMsDpg27UtAROOcKMXsoc0fDwv98",
|
||||||
|
"project_id": "",
|
||||||
|
"client_id": "353226118456737806",
|
||||||
|
"client_secret": "5uH0r2elIQ3xji4N4aTOARZjEDDUWC0cfIybGaFkvhwlA6gvygMHOdmodVg4K6PJ"
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue