chore: tune fly deployment defaults
This commit is contained in:
@@ -32,7 +32,7 @@ cd clawdbot
|
|||||||
fly apps create my-clawdbot
|
fly apps create my-clawdbot
|
||||||
|
|
||||||
# Create a persistent volume (1GB is usually enough)
|
# Create a persistent volume (1GB is usually enough)
|
||||||
fly volumes create clawdbot_data --size 1 --region lhr
|
fly volumes create clawdbot_data --size 1 --region iad
|
||||||
```
|
```
|
||||||
|
|
||||||
**Tip:** Choose a region close to you. Common options: `lhr` (London), `iad` (Virginia), `sjc` (San Jose).
|
**Tip:** Choose a region close to you. Common options: `lhr` (London), `iad` (Virginia), `sjc` (San Jose).
|
||||||
@@ -43,7 +43,7 @@ Edit `fly.toml` to match your app name and requirements:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
app = "my-clawdbot" # Your app name
|
app = "my-clawdbot" # Your app name
|
||||||
primary_region = "lhr"
|
primary_region = "iad"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
dockerfile = "Dockerfile"
|
dockerfile = "Dockerfile"
|
||||||
@@ -134,14 +134,14 @@ fly ssh console
|
|||||||
|
|
||||||
Create the config directory and file:
|
Create the config directory and file:
|
||||||
```bash
|
```bash
|
||||||
mkdir -p /data/.clawdbot
|
mkdir -p /data
|
||||||
cat > /data/.clawdbot/clawdbot.json << 'EOF'
|
cat > /data/clawdbot.json << 'EOF'
|
||||||
{
|
{
|
||||||
"agents": {
|
"agents": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"model": {
|
"model": {
|
||||||
"primary": "anthropic/claude-opus-4-5",
|
"primary": "anthropic/claude-opus-4-5",
|
||||||
"failover": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"]
|
"fallbacks": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"]
|
||||||
},
|
},
|
||||||
"maxConcurrent": 4
|
"maxConcurrent": 4
|
||||||
},
|
},
|
||||||
@@ -187,6 +187,8 @@ cat > /data/.clawdbot/clawdbot.json << 'EOF'
|
|||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note:** With `CLAWDBOT_STATE_DIR=/data`, the config path is `/data/clawdbot.json`.
|
||||||
|
|
||||||
**Note:** The Discord token can come from either:
|
**Note:** The Discord token can come from either:
|
||||||
- Environment variable: `DISCORD_BOT_TOKEN` (recommended for secrets)
|
- Environment variable: `DISCORD_BOT_TOKEN` (recommended for secrets)
|
||||||
- Config file: `channels.discord.token`
|
- Config file: `channels.discord.token`
|
||||||
|
|||||||
2
fly.toml
2
fly.toml
@@ -15,7 +15,7 @@ primary_region = "iad" # change to your closest region
|
|||||||
NODE_OPTIONS = "--max-old-space-size=1536"
|
NODE_OPTIONS = "--max-old-space-size=1536"
|
||||||
|
|
||||||
[processes]
|
[processes]
|
||||||
app = "node dist/index.js gateway --port 3000 --bind lan"
|
app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan"
|
||||||
|
|
||||||
[http_service]
|
[http_service]
|
||||||
internal_port = 3000
|
internal_port = 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user