Skip to content

Commit

Permalink
Merge branch 'develop' into fix/search-refactor-isValidDateRange
Browse files Browse the repository at this point in the history
  • Loading branch information
zilola08 committed Jan 20, 2024
2 parents 6da3356 + 470fb9a commit d8f65e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ DB_USER=username
DB_PASSWORD=password
DB_NAME=db_name
DB_HOST=postgres # use 'localhost' if you are not using docker
DB_PORT=5432

DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:5432/${DB_NAME}?schema=public"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker-compose down
docker-compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker-compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker-compose up -d ${{env.DOCKER_CONTAINER_NAME}}
docker compose down
docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker compose up -d ${{env.DOCKER_CONTAINER_NAME}}
8 changes: 4 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker-compose down
docker-compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker-compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker-compose up -d ${{env.DOCKER_CONTAINER_NAME}}
docker compose down
docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker compose up -d ${{env.DOCKER_CONTAINER_NAME}}
2 changes: 2 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
POSTGRES_HOST: ${DB_HOST}
POSTGRES_PORT: ${DB_PORT}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USER} -d ${DB_NAME}']
interval: 5s
Expand Down

0 comments on commit d8f65e2

Please sign in to comment.