Spaces:
Runtime error
Runtime error
Commit
·
0a8c1b6
1
Parent(s):
2e9cfee
Updated run.sh and Dockerfile. small update....again...again.
Browse files
run.sh
CHANGED
|
@@ -31,9 +31,9 @@ parse_yaml() {
|
|
| 31 |
local file=$1
|
| 32 |
if command -v python3 &> /dev/null; then
|
| 33 |
python3 -c "
|
| 34 |
-
import
|
| 35 |
with open('$file', 'r') as f:
|
| 36 |
-
config =
|
| 37 |
print(config['server']['port'])
|
| 38 |
print(config['server']['host'])
|
| 39 |
"
|
|
|
|
| 31 |
local file=$1
|
| 32 |
if command -v python3 &> /dev/null; then
|
| 33 |
python3 -c "
|
| 34 |
+
import pyyaml
|
| 35 |
with open('$file', 'r') as f:
|
| 36 |
+
config = pyyaml.safe_load(f)
|
| 37 |
print(config['server']['port'])
|
| 38 |
print(config['server']['host'])
|
| 39 |
"
|