-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnv_settings.txt
More file actions
89 lines (75 loc) · 3.16 KB
/
Env_settings.txt
File metadata and controls
89 lines (75 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[
{
"name": "ANTHROPIC_API_KEY",
"value": "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",
"slotSetting": false
},
{
"name": "GEMINI_API_KEY",
"value": "AIzaSyAt1qp5-pb3VNmvnYnxTzyW3lvTw3O32k4",
"slotSetting": false
},
{
"name": "GUARDIAN_API_KEY",
"value": "b8628f2d-514e-4c89-aeee-22824c326c53",
"slotSetting": false
},
{
"name": "LLM_SERVICE_TYPE",
"value": "openai",
"slotSetting": false
},
{
"name": "MOONSHOT_API_KEY",
"value": "sk-ff0NCv9uosxHgk9y4u7q4eceFjdQseiu1zbMCYeyOBrFLDNM",
"slotSetting": false
},
{
"name": "NEWS_API_KEY",
"value": "e976729115e84a9cb7319b705c50e2f0",
"slotSetting": false
},
{
"name": "OPENAI_API_KEY",
"value": "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",
"slotSetting": false
},
{
"name": "SCM_DO_BUILD_DURING_DEPLOYMENT",
"value": "false",
"slotSetting": false
},
{
"name": "WEBSITES_CONTAINER_START_TIME_LIMIT",
"value": "1800",
"slotSetting": false
}
]
cd /home/site/wwwroot && python -m pip install --upgrade pip && pip install -r requirements.txt && pip install python-dateutil==2.8.2 httpx==0.27.0 volcengine volcengine-python-sdk[ark] Flask-Cors==4.0.0 && gunicorn --bind=0.0.0.0:8000 --timeout 2000 --workers 2 --threads 4 --worker-class gthread --keep-alive 120 --max-requests 1000 --graceful-timeout 300 butterfly_server:app
- Running web socket app changes:
- gunicorn --worker-class gevent --worker-connections 1000 run:app
- WEBSITE_WEBSOCKET_ENABLED=1
- gunicorn[eventlet]==21.2.0
cd /home/site/wwwroot && pip install -r requirements.txt && pip install python-dateutil==2.8.2 httpx==0.27.0 Flask-Cors==4.0.0 volcenginesdkarkruntime==1.0.10 && gunicorn --bind=0.0.0.0:8000 --timeout 2000 --workers 2 --threads 4 --worker-class gthread butterfly_server:app
# Start the application with proper error handling
gunicorn --bind=0.0.0.0:8000 butterfly_server:app \
--timeout 120 \
--workers 4 \
--access-logfile - \
--error-logfile - \
--capture-output \
--log-level info
cd /home/site/wwwroot && python -m pip install --upgrade pip && pip install -r requirements.txt && pip install python-dateutil==2.8.2 httpx==0.27.0 volcengine volcengine-python-sdk[ark] Flask-Cors==4.0.0 && gunicorn --bind=0.0.0.0:8000 --timeout 2000 --workers 2 --threads 4 --worker-class gthread butterfly_server:app
cd /home/site/wwwroot && pip install python-dateutil==2.8.2 httpx==0.27.0 volcengine volcengine-python-sdk[ark] Flask-Cors==4.0.0 && gunicorn --bind=0.0.0.0:8000 --timeout 2000 --workers 2 --threads 4 --worker-class gthread butterfly_server:app
az webapp log tail --name butterfly-server --resource-group aka_resource
cd /home/site/wwwroot && \
tar xzf output.tar.gz && \
rm output.tar.gz && \
ls -la
az webapp command invoke \
--name butterfly-server \
--resource-group aka_resource \
--command-line "cd /home/site/wwwroot && \
tar xzf output.tar.gz && \
rm output.tar.gz && \
ls -la"