소스 검색

add deploy scripts

pull/44/head
Guillaume Vincent 8 년 전
부모
커밋
85d1fe12d3
2개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      deploy/deploy.sh
  2. +20
    -0
      deploy/prepare_release.sh

+ 8
- 0
deploy/deploy.sh 파일 보기

@@ -0,0 +1,8 @@
#!/bin/bash

cd ..
export COMPOSE_HTTP_TIMEOUT=120
docker-compose -f docker-compose.yml -f docker-compose.prod.yml rm -f
docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull
docker-compose -f docker-compose.yml -f docker-compose.prod.yml build
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

+ 20
- 0
deploy/prepare_release.sh 파일 보기

@@ -0,0 +1,20 @@
#!/bin/bash

echo "prepare release"
cd ..
docker-compose -f docker-compose.yml -f docker-compose.prod.yml stop
docker-compose -f docker-compose.yml -f docker-compose.prod.yml rm -f
docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull
docker-compose -f docker-compose.yml -f docker-compose.prod.yml build
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
echo "run tests"
docker exec lesspass_frontend_1 npm run test
docker exec lesspass_backend_1 python manage.py test

echo "build frontend"
cd frontend
npm run build

cd ..
git status
cd deploy

불러오는 중...
취소
저장