Skip to content

Commit 8a72a8b

Browse files
committed
fix(postgres): override socket location
1 parent 23fbd52 commit 8a72a8b

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.github/workflows/postgres.yml

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: Uninstall Postgres
18-
if: matrix.os == 'ubuntu-latest'
19-
run: |
20-
sudo apt-get remove postgresql postgresql-contrib
21-
sudo apt-get --purge remove postgresql postgresql-contrib
22-
sudo apt-get autoremove
23-
sudo apt-get autoclean
2417
- name: Setup Fluent CI
2518
uses: fluentci-io/setup-fluentci@v5
2619
with:

postgres/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn setup() -> Result<String, Error> {
6161
"[ -f $PGDATA/postgresql.conf ] || flox activate -- initdb",
6262
])?
6363
.with_exec(vec![
64-
"grep -q postgres Procfile || echo 'postgres: postgres' >> Procfile",
64+
"grep -q postgres Procfile || echo 'postgres: postgres -k $PWD/postgres.sock' >> Procfile",
6565
])?
6666
.stdout()?;
6767

postgres/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn start(_args: String) -> FnResult<String> {
1515
.with_exec(vec!["type", "overmind"])?
1616
.with_exec(vec!["type", "postgres"])?
1717
.with_exec(vec!["echo -e \"Postgres starting on port $PGPORT\""])?
18-
.with_exec(vec!["overmind", "start", "-f", "Procfile"])?
18+
.with_exec(vec!["overmind", "start", "-f", "Procfile", "--daemonize"])?
1919
.wait_on(port.parse()?, None)?
2020
.with_exec(vec!["overmind", "status"])?
2121
.stdout()?;

0 commit comments

Comments
 (0)