Flo-Token-System-Docker/run.sh
Divyansh Bhardwaj f5a6851c73 Changed the binary
Added commands for docker volume creation
2022-07-05 22:29:55 +05:30

9 lines
416 B
Bash
Executable File

#!/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
echo "running..."
#supervisord -c /etc/supervisor/conf.d/ftt-ranchimallflo.conf
#./floscout/example