port num
This commit is contained in:
1 parent
bfda0b58ae
commit
b0bf8fefe7
3 files changed
+28
-23
No files matched your search
+5
-1
@@ -1,10 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
api_location=${1}
|
||||
port=${PORT:-8000}
|
||||
host=${HOST:-0.0.0.0}
|
||||
host_port="$host:$port"
|
||||
|
||||
pushd $api_location
|
||||
echo "--------------------"
|
||||
echo "BUILD_VERSION = "$BUILD_VERSION
|
||||
echo "HOST = $host_port"
|
||||
echo $(python --version)
|
||||
echo "--------------------"
|
||||
python -m hypercorn src.app:app -b "0.0.0.0:8000"
|
||||
python -m hypercorn src.app:app -b $host_port
|
||||
Reference in new issue
Block a user