Skip to content

Commit 2580302

Browse files
committed
fixup: CI fix try: postgres didn't start for prod-boot
1 parent 446da83 commit 2580302

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/prod-boot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
ruby -e "require 'securerandom'; puts \"SECRET_KEY_BASE=#{SecureRandom.hex(64)}\"" >> deploy/.env
2121
echo "FORCE_SSL=false" >> deploy/.env
2222
echo "APP_HOST=localhost" >> deploy/.env
23+
# Copy Postgres config template and shrink memory settings
24+
cp deploy/postgres/postgresql.conf.example deploy/postgres/postgresql.conf
25+
sed -i 's/^shared_buffers = .*/shared_buffers = 128MB/' deploy/postgres/postgresql.conf
26+
sed -i 's/^effective_cache_size = .*/effective_cache_size = 256MB/' deploy/postgres/postgresql.conf
27+
sed -i 's/^work_mem = .*/work_mem = 4MB/' deploy/postgres/postgresql.conf
28+
sed -i 's/^maintenance_work_mem = .*/maintenance_work_mem = 64MB/' deploy/postgres/postgresql.conf
2329
2430
- name: Start database
2531
run: docker compose -f deploy/docker-compose.yml up -d db

0 commit comments

Comments
 (0)