Fixed bugs
This commit is contained in:
parent
3698caee7b
commit
00e5b47af4
@ -72,7 +72,8 @@ RUN touch /var/log/floscout/floscout.out.log
|
||||
|
||||
RUN mkdir /data
|
||||
WORKDIR /
|
||||
COPY mongoose-server
|
||||
RUN mkdir mongoose-server
|
||||
COPY mongoose-server/ /mongoose-server
|
||||
COPY run.sh .
|
||||
RUN chmod +x run.sh
|
||||
ENTRYPOINT ["sh","/run.sh"]
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
static const char *s_debug_level = "2";
|
||||
static const char *s_root_dir = ".";
|
||||
static const char *s_listening_address = "http://0.0.0.0:6012";
|
||||
static const char *s_listening_address = "http://0.0.0.0:6200";
|
||||
static const char *s_enable_hexdump = "no";
|
||||
static const char *s_ssi_pattern = "#.html";
|
||||
|
||||
|
||||
19
run.sh
19
run.sh
@ -1,8 +1,10 @@
|
||||
#!/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
|
||||
# prepare binary
|
||||
cd /mongoose-server/examples/http-server
|
||||
make
|
||||
chmod +x example
|
||||
cp example /floscout
|
||||
|
||||
if [ ! -z "$FLOSCOUT_BOOTSTRAP" ] && [ "$(cat /data/floscout-url.txt)" != "$FLOSCOUT_BOOTSTRAP" ]
|
||||
then
|
||||
@ -23,12 +25,11 @@ then
|
||||
ls /data
|
||||
fi
|
||||
|
||||
# prepare binary
|
||||
cd /mongoose-server/examples/http-server
|
||||
make
|
||||
chmod +x example
|
||||
cp example /floscout
|
||||
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
|
||||
cd /floscout
|
||||
./example
|
||||
|
||||
Loading…
Reference in New Issue
Block a user