Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/files/postgrest-optimizations.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description=Postgrest optimizations
[Service]
Type=oneshot
# we don't want failures from this command to cause PG startup to fail
ExecStart=/bin/bash -c "/opt/supabase-admin-api optimize postgrest --destination-config-file-path /etc/postgrest/generated.conf ; exit 0"
ExecStart=/bin/bash -c "/opt/supabase-admin-api optimize postgrest --destination-config-file-path /etc/postgrest/generated.conf --destination-env-file-path /etc/postgrest/generated.env; exit 0"
User=postgrest

[Install]
Expand Down
1 change: 1 addition & 0 deletions ansible/files/postgrest.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ StartLimitBurst=0

[Service]
Type=simple
EnvironmentFile=-/etc/postgrest/generated.env
# We allow the base config (sent from the worker) to override the generated config
ExecStartPre=/etc/postgrest/merge.sh /etc/postgrest/generated.conf /etc/postgrest/base.conf
ExecStart=/opt/postgrest /etc/postgrest/merged.conf
Expand Down
Loading