diff --git a/example b/example old mode 100755 new mode 100644 diff --git a/run.sh b/run.sh index e78a4d3..5e8f96e 100755 --- a/run.sh +++ b/run.sh @@ -1,11 +1,8 @@ #!/bin/bash cd /etc/supervisor/conf.d/ +sed -i "s|command=hypercorn -w 1 -b 0.0.0.0:6012 wsgi:app|command=hypercorn -w 1 -b $FLOAPIURL wsgi:app|" /etc/supervisor/conf.d/ftt-ranchimallflo.conf sed -i "s|window.tokenapiUrl = 'https://ranchimallflo.duckdns.org'|window.tokenapiUrl = '$FLOAPIURL'|" /floscout/index.html -#sed -i "s|command=hypercorn -w 1 -b 0.0.0.0:6012 wsgi:app|command=hypercorn -w 1 -b $FLOAPIURL wsgi:app" /etc/supervisor/conf.d/ftt-ranchimallflo.conf - -#cat /floscout/index.html -#cat /etc/supervisor/conf.d/ftt-ranchimallflo.conf echo "running..." #supervisord -c /etc/supervisor/conf.d/ftt-ranchimallflo.conf