diff --git a/.github/workflows/deploy-to-beta-by-push.yml b/.github/workflows/deploy-to-beta-by-push.yml index d133866..0f71eb8 100644 --- a/.github/workflows/deploy-to-beta-by-push.yml +++ b/.github/workflows/deploy-to-beta-by-push.yml @@ -76,7 +76,7 @@ jobs: username: ${{ secrets.VPS_OVH_BF7EC892_USERNAME }} key: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY }} passphrase: ${{ secrets.VPS_OVH_BF7EC892_SSH_PRIVATE_KEY_PASSPHRASE }} - source: "./environment/prod/deployment/beta/*,./environment/prod/deployment/scripts/*" + source: "./environment/prod/deployment/beta/*,./environment/prod/deployment/scripts/*,./environment/prod/deployment/postgres/*" target: ${{ secrets.KEATING_VPS_BETA_APP_PATH }} rm: true diff --git a/environment/prod/deployment/beta/docker-compose.beta.yml b/environment/prod/deployment/beta/docker-compose.beta.yml index a2d420f..5c6e521 100644 --- a/environment/prod/deployment/beta/docker-compose.beta.yml +++ b/environment/prod/deployment/beta/docker-compose.beta.yml @@ -59,6 +59,7 @@ services: timeout: 3s retries: 5 volumes: + - ./environment/prod/deployment/postgres/init-unaccent.sql:/docker-entrypoint-initdb.d/init-unaccent.sql - keating-beta-pgsql-data:/var/lib/postgresql/data networks: - keating-beta diff --git a/environment/prod/deployment/postgres/init-unaccent.sql b/environment/prod/deployment/postgres/init-unaccent.sql new file mode 100644 index 0000000..3e0a409 --- /dev/null +++ b/environment/prod/deployment/postgres/init-unaccent.sql @@ -0,0 +1,2 @@ +-- Enable the unaccent extension +CREATE EXTENSION IF NOT EXISTS unaccent;