diff --git a/iac/mainnet-fork/Earthfile b/iac/mainnet-fork/Earthfile index c0028dcae5d..ac991f42c7b 100644 --- a/iac/mainnet-fork/Earthfile +++ b/iac/mainnet-fork/Earthfile @@ -16,7 +16,6 @@ build: COPY ./scripts ./scripts COPY ./redeploy ./redeploy COPY ./nginx/ /etc/nginx/ - COPY --chmod 640 ./etc/anvil.logrotate.conf /etc/logrotate.d/anvil # Expose port 80 EXPOSE 80 diff --git a/iac/mainnet-fork/etc/anvil.logrotate.conf b/iac/mainnet-fork/etc/anvil.logrotate.conf deleted file mode 100644 index 1ee786d3d46..00000000000 --- a/iac/mainnet-fork/etc/anvil.logrotate.conf +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/anvil/*.log { - daily - missingok - rotate 14 - size 50M - compress - notifempty - copytruncate -} \ No newline at end of file diff --git a/iac/mainnet-fork/scripts/run_nginx_anvil.sh b/iac/mainnet-fork/scripts/run_nginx_anvil.sh index 8c433f199ae..8ff9ffba438 100755 --- a/iac/mainnet-fork/scripts/run_nginx_anvil.sh +++ b/iac/mainnet-fork/scripts/run_nginx_anvil.sh @@ -25,8 +25,8 @@ mkdir -p /data # Log directory for anvil mkdir -p /var/log/anvil/ -# Run anvil logging to /var/log/anvil -.foundry/bin/anvil --block-time 12 --host $HOST -p $PORT -m "$MNEMONIC_STRIPPED" -f=https://mainnet.infura.io/v3/$INFURA_API_KEY --chain-id=$L1_CHAIN_ID --fork-block-number=15918000 --block-base-fee-per-gas=10 -s=$SNAPSHOT_FREQUENCY --state=./data/state --balance=1000000000000000000 >>/var/log/anvil/anvil.log & +# Run anvil logging to stdout +.foundry/bin/anvil --block-time 12 --host $HOST -p $PORT -m "$MNEMONIC_STRIPPED" -f=https://mainnet.infura.io/v3/$INFURA_API_KEY --chain-id=$L1_CHAIN_ID --fork-block-number=15918000 --block-base-fee-per-gas=10 -s=$SNAPSHOT_FREQUENCY --state=./data/state --balance=1000000000000000000 & echo "Waiting for ethereum host at $ETHEREUM_HOST..." while ! curl -s $ETHEREUM_HOST >/dev/null; do sleep 1; done