mirror of
https://github.com/anonymousx97/social-dl.git
synced 2025-02-20 11:13:19 +08:00
14 lines
338 B
Plaintext
14 lines
338 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if [ "$API_PORT" ] ; then
|
||
|
py_code="
|
||
|
from aiohttp import web
|
||
|
app = web.Application()
|
||
|
app.router.add_get('/', lambda _: web.Response(text='Web Server Running...'))
|
||
|
web.run_app(app, host='0.0.0.0', port=$API_PORT, reuse_port=True, print=None)
|
||
|
"
|
||
|
python3 -q -c "$py_code" & echo "Dummy Web Server Started..."
|
||
|
|
||
|
fi
|
||
|
|
||
|
python3 -m app
|