helper scripts
This commit is contained in:
parent
fd97411feb
commit
f071ad4558
19
bin/deploy-production
Executable file
19
bin/deploy-production
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
docker-compose-production up -d
|
||||
|
||||
sleep 3
|
||||
|
||||
docker-compose-production ps
|
||||
|
||||
echo "$(pwd)/bin/docker-compose-production logs -f"
|
6
bin/docker-compose-production
Executable file
6
bin/docker-compose-production
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# change to the project's root directory
|
||||
cd "${0%/*}/.."
|
||||
|
||||
exec docker-compose -f docker-compose.prod.yml "$@"
|
Loading…
Reference in New Issue
Block a user