mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
14 lines
No EOL
354 B
Bash
14 lines
No EOL
354 B
Bash
#!/bin/sh
|
|
|
|
# Change to the correct directory
|
|
cd /usr/src/app;
|
|
|
|
# Start hardhat node as a background process
|
|
nohup npx hardhat node &
|
|
|
|
# Wait for hardhat node to initialize and then deploy contracts
|
|
npx wait-on http://127.0.0.1:8545 && nohup npm run deploy;
|
|
|
|
# The hardhat node process never completes
|
|
# Waiting prevents the container from pausing
|
|
wait $! |