Skip to content

Commit

Permalink
Checking a file in the persisted directory, instead
Browse files Browse the repository at this point in the history
This will have the behaviour survive between puppeth deploys, and not just stops/starts.
  • Loading branch information
tomatoskittles committed Jun 14, 2022
1 parent a0ef27b commit 1c4b2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/puppeth/module_explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ RUN \
echo $'LC_ALL=C exec syscoind {{if eq .NetworkID 5700}}--testnet --addnode=3.143.67.237{{end}} --datadir=/opt/app/.syscoin --disablewallet --gethcommandline=--syncmode="full" --gethcommandline=--gcmode="archive" --gethcommandline=--rpc.evmtimeout=10s --gethcommandline=--port={{.EthPort}} --gethcommandline=--bootnodes={{.Bootnodes}} --gethcommandline=--ethstats={{.Ethstats}} --gethcommandline=--cache=8192 --gethcommandline=--http --gethcommandline=--http.api="net,web3,eth,debug,txpool" --gethcommandline=--http.corsdomain="*" --gethcommandline=--http.vhosts="*" --gethcommandline=--ws --gethcommandline=--ws.origins="*" &' >> explorer.sh && \
echo '/usr/local/bin/docker-entrypoint.sh postgres &' >> explorer.sh && \
echo 'sleep 5' >> explorer.sh && \
echo 'if [ -f ~/explorer_init.sh ]; then' >> explorer.sh && \
echo 'if [ ! -f /opt/app/.syscoin/explorer_init_done.sh ]; then' >> explorer.sh && \
echo ' . ~/explorer_init.sh' >> explorer.sh && \
echo ' mv ~/explorer_init.sh ~/explorer_init_done.sh' >> explorer.sh && \
echo ' mv ~/explorer_init.sh /opt/app/.syscoin/explorer_init_done.sh' >> explorer.sh && \
echo 'fi' >> explorer.sh && \
echo 'mix phx.server' >> explorer.sh && \
echo '# only re-create the database on fresh container start' >> explorer_init.sh && \
Expand Down

0 comments on commit 1c4b2d8

Please sign in to comment.