Changes in run.sh for floscout APu url
This commit is contained in:
parent
7c8567fb07
commit
c048a31bbf
11
run.sh
11
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
|
||||
Loading…
Reference in New Issue
Block a user