web3-proxy/bin/docker-compose-production-deploy

20 lines
357 B
Plaintext
Raw Permalink Normal View History

2022-07-25 19:04:11 +00:00
#!/bin/bash -eu
2022-05-27 16:47:33 +00:00
# change to the project's root directory
cd "${0%/*}/.."
# put our scripts on the path
export PATH="$(pwd)/bin:$PATH"
# build the image
docker-compose-production build --pull
# run the image
2022-09-08 21:02:44 +00:00
docker-compose-production up -d --remove-orphans "$@"
2022-05-27 16:47:33 +00:00
sleep 3
docker-compose-production ps
echo "$(pwd)/bin/docker-compose-production logs -f"