mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 23:34:51 +00:00
A few more deploy changes
This commit is contained in:
9
deploy/docker-compose-prod-webapp.yml
Normal file
9
deploy/docker-compose-prod-webapp.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
app:
|
||||||
|
extends:
|
||||||
|
file: docker-compose-common.yml
|
||||||
|
service: app
|
||||||
|
links:
|
||||||
|
- db
|
||||||
|
restart: always
|
||||||
|
env_file:
|
||||||
|
- ./prod.env
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
if [ -z "$1" ]
|
if [ -z "$2" ]
|
||||||
then
|
then
|
||||||
echo "usage) server-deploy-prod.sh user@server"
|
echo "usage) server-deploy-prod.sh user@server docker-compose-file-name.yml"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -18,5 +18,5 @@ docker kill $(docker ps -q)
|
|||||||
|
|
||||||
bash rails-prod.sh wrestlingdev
|
bash rails-prod.sh wrestlingdev
|
||||||
cd deploy
|
cd deploy
|
||||||
docker-compose -f docker-compose-prod.yml up -d
|
docker-compose -f ${2} up -d
|
||||||
'"
|
'"
|
||||||
Reference in New Issue
Block a user