From c048a31bbf90be53ef2eb3c8b5e93db7fcf531d5 Mon Sep 17 00:00:00 2001 From: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com> Date: Sun, 3 Jul 2022 01:09:06 +0530 Subject: [PATCH] Changes in run.sh for floscout APu url --- run.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 9692fff..d4e7255 100755 --- a/run.sh +++ b/run.sh @@ -1,12 +1,17 @@ #!/bin/bash cd /etc/supervisor/conf.d/ -sed -i "s|window.tokenapiUrl = 'http://0.0.0.0:6012'|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 +FLOAPIURL = $(FLOAPIURL) +NETWROKK = $(NETWROKK) -#cat /floscout/index.html +sed -i "s|window.tokenapiUrl = 'http://0.0.0.0:6012'|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 $FLOAPIURL +echo $NETWROKK echo "running..." supervisord -c /etc/supervisor/conf.d/ftt-ranchimallflo.conf #./floscout/example \ No newline at end of file