Skip to content

Commit

Permalink
Add Fly.io /postgres-volume to path (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu authored Feb 9, 2024
1 parent 12778d3 commit 19d0fe1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/clone-and-preflight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ if (projectUsesPostgresql) {
process.env.PGPASSWORD = 'project_to_check';

// Create directory for PostgreSQL socket
await executeCommand('mkdir /run/postgresql');
await executeCommand('chown postgres:postgres /run/postgresql');
await executeCommand('mkdir -p /postgres-volume/run/postgresql/data');
await executeCommand(
'chown -R postgres:postgres /postgres-volume/run/postgresql',
);

// Run script as postgres user to:
// - Create data directory
Expand Down

0 comments on commit 19d0fe1

Please sign in to comment.