Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
179fbf1
1
Parent(s):
5ca5f4b
move from aitube_low.yaml to aitube.yaml
Browse files- DEPLOYMENT.md +4 -4
- build/web/assets/AssetManifest.bin +8 -1
- build/web/assets/AssetManifest.json +1 -1
- build/web/flutter_service_worker.js +1 -1
- build/web/main.dart.js +2 -2
- lib/config/config.dart +1 -1
DEPLOYMENT.md
CHANGED
@@ -82,10 +82,10 @@ PRODUCT_NAME="AiTube" \
|
|
82 |
|
83 |
```bash
|
84 |
# For local development with default configuration
|
85 |
-
flutter run --dart-define=CONFIG_PATH=assets/config/
|
86 |
|
87 |
# For production build to be deployed on a server
|
88 |
-
flutter build web --dart-define=CONFIG_PATH=assets/config/
|
89 |
```
|
90 |
|
91 |
### WebSocket Connection
|
@@ -106,14 +106,14 @@ The application automatically determines the WebSocket URL:
|
|
106 |
|
107 |
For production builds (connecting to aitube.at):
|
108 |
```bash
|
109 |
-
flutter build apk --dart-define=CONFIG_PATH=assets/config/
|
110 |
```
|
111 |
|
112 |
#### Custom API Server
|
113 |
|
114 |
For connecting to a different server:
|
115 |
```bash
|
116 |
-
flutter build apk --dart-define=CONFIG_PATH=assets/config/
|
117 |
```
|
118 |
|
119 |
Note: The `API_WS_URL` parameter takes precedence over the production setting.
|
|
|
82 |
|
83 |
```bash
|
84 |
# For local development with default configuration
|
85 |
+
flutter run --dart-define=CONFIG_PATH=assets/config/aitube.yaml -d chrome
|
86 |
|
87 |
# For production build to be deployed on a server
|
88 |
+
flutter build web --dart-define=CONFIG_PATH=assets/config/aitube.yaml
|
89 |
```
|
90 |
|
91 |
### WebSocket Connection
|
|
|
106 |
|
107 |
For production builds (connecting to aitube.at):
|
108 |
```bash
|
109 |
+
flutter build apk --dart-define=CONFIG_PATH=assets/config/aitube.yaml --dart-define=PRODUCTION_MODE=true
|
110 |
```
|
111 |
|
112 |
#### Custom API Server
|
113 |
|
114 |
For connecting to a different server:
|
115 |
```bash
|
116 |
+
flutter build apk --dart-define=CONFIG_PATH=assets/config/aitube.yaml --dart-define=API_WS_URL=ws://custom-api.example.com/ws
|
117 |
```
|
118 |
|
119 |
Note: The `API_WS_URL` parameter takes precedence over the production setting.
|
build/web/assets/AssetManifest.bin
CHANGED
@@ -1 +1,8 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aitube.yamlaitube.yaml
|
2 |
+
assets/config/README.md
|
3 |
+
assetassets/config/README.mdassets/config/aitube_high.yaml
|
4 |
+
assetassets/config/aitube_high.yamlassets/config/aitube_low.yaml
|
5 |
+
assetassets/config/aitube_low.yamlassets/config/default.yaml
|
6 |
+
assetassets/config/default.yamlassets/config/private.yaml
|
7 |
+
assetassets/config/private.yaml2packages/cupertino_icons/assets/CupertinoIcons.ttf
|
8 |
+
asset2packages/cupertino_icons/assets/CupertinoIcons.ttf
|
build/web/assets/AssetManifest.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"assets/config/README.md":["assets/config/README.md"],"assets/config/aitube_high.yaml":["assets/config/aitube_high.yaml"],"assets/config/
|
|
|
1 |
+
{"assets/config/README.md":["assets/config/README.md"],"assets/config/aitube_high.yaml":["assets/config/aitube_high.yaml"],"assets/config/aitube.yaml":["assets/config/aitube.yaml"],"assets/config/default.yaml":["assets/config/default.yaml"],"assets/config/private.yaml":["assets/config/private.yaml"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
build/web/flutter_service_worker.js
CHANGED
@@ -27,7 +27,7 @@ const RESOURCES = {"flutter_bootstrap.js": "a1978150e41f01842b52df7eb3c181aa",
|
|
27 |
"assets/assets/config/README.md": "07a87720dd00dd1ca98c9d6884440e31",
|
28 |
"assets/assets/config/aitube_high.yaml": "c030f221344557ecf05aeef30f224502",
|
29 |
"assets/assets/config/default.yaml": "e98187e5a53a8b0d8bf2c5cd9dd0a365",
|
30 |
-
"assets/assets/config/
|
31 |
"canvaskit/skwasm.js": "ea559890a088fe28b4ddf70e17e60052",
|
32 |
"canvaskit/skwasm.js.symbols": "9fe690d47b904d72c7d020bd303adf16",
|
33 |
"canvaskit/canvaskit.js.symbols": "27361387bc24144b46a745f1afe92b50",
|
|
|
27 |
"assets/assets/config/README.md": "07a87720dd00dd1ca98c9d6884440e31",
|
28 |
"assets/assets/config/aitube_high.yaml": "c030f221344557ecf05aeef30f224502",
|
29 |
"assets/assets/config/default.yaml": "e98187e5a53a8b0d8bf2c5cd9dd0a365",
|
30 |
+
"assets/assets/config/aitube.yaml": "462167d380f349ce42a272b7d61e2220",
|
31 |
"canvaskit/skwasm.js": "ea559890a088fe28b4ddf70e17e60052",
|
32 |
"canvaskit/skwasm.js.symbols": "9fe690d47b904d72c7d020bd303adf16",
|
33 |
"canvaskit/canvaskit.js.symbols": "27361387bc24144b46a745f1afe92b50",
|
build/web/main.dart.js
CHANGED
@@ -43250,7 +43250,7 @@ return A.i(j.a_1("assets/config/default.yaml"),$async$b7)
|
|
43250 |
case 2:o.a=o.Fx(h.aNt(c))
|
43251 |
q=4
|
43252 |
s=7
|
43253 |
-
return A.i(j.a_1("assets/config/
|
43254 |
case 7:n=c
|
43255 |
m=o.Fx(A.aNt(n))
|
43256 |
o.ahm(m)
|
@@ -43260,7 +43260,7 @@ break
|
|
43260 |
case 4:q=3
|
43261 |
i=p.pop()
|
43262 |
l=A.W(i)
|
43263 |
-
A.ki("Warning: Could not load custom config from assets/config/
|
43264 |
s=6
|
43265 |
break
|
43266 |
case 3:s=1
|
|
|
43250 |
case 2:o.a=o.Fx(h.aNt(c))
|
43251 |
q=4
|
43252 |
s=7
|
43253 |
+
return A.i(j.a_1("assets/config/aitube.yaml"),$async$b7)
|
43254 |
case 7:n=c
|
43255 |
m=o.Fx(A.aNt(n))
|
43256 |
o.ahm(m)
|
|
|
43260 |
case 4:q=3
|
43261 |
i=p.pop()
|
43262 |
l=A.W(i)
|
43263 |
+
A.ki("Warning: Could not load custom config from assets/config/aitube.yaml: "+A.j(l))
|
43264 |
s=6
|
43265 |
break
|
43266 |
case 3:s=1
|
lib/config/config.dart
CHANGED
@@ -20,7 +20,7 @@ class Configuration {
|
|
20 |
// Get custom config path from environment
|
21 |
const customConfigPath = String.fromEnvironment(
|
22 |
'CONFIG_PATH',
|
23 |
-
defaultValue: 'assets/config/
|
24 |
);
|
25 |
|
26 |
try {
|
|
|
20 |
// Get custom config path from environment
|
21 |
const customConfigPath = String.fromEnvironment(
|
22 |
'CONFIG_PATH',
|
23 |
+
defaultValue: 'assets/config/aitube.yaml'
|
24 |
);
|
25 |
|
26 |
try {
|