Skip to content

Commit 47d08a2

Browse files
committed
doc: Fixed logfile in root dir
1 parent 542756f commit 47d08a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shelf/postgres-local",
3-
"version": "0.1.0-alpha",
3+
"version": "0.1.1-alpha",
44
"description": "Run 14 version of Postgres locally",
55
"keywords": [
66
"postgres",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function getInstallationScript(version: number): string {
5252
brew install postgresql@${version}
5353
mkdir -p ${FILEPATH_PREFIX}/data;
5454
initdb -D ${FILEPATH_PREFIX}/data;
55-
pg_ctl -D ${FILEPATH_PREFIX}/data -l logfile start;
55+
pg_ctl -D ${FILEPATH_PREFIX}/data -l ${FILEPATH_PREFIX}/logfile start;
5656
`;
5757
}
5858
case 'win32': {
@@ -64,7 +64,7 @@ export function getInstallationScript(version: number): string {
6464
apt-get install -y postgresql-${version}
6565
mkdir -p ${FILEPATH_PREFIX}/data;
6666
/usr/lib/postgresql/${version}/bin/initdb -D ${FILEPATH_PREFIX}/data;
67-
/usr/lib/postgresql/${version}/bin/pg_ctl -D ${FILEPATH_PREFIX}/data -l logfile start;
67+
/usr/lib/postgresql/${version}/bin/pg_ctl -D ${FILEPATH_PREFIX}/data -l ${FILEPATH_PREFIX}logfile start;
6868
`;
6969
}
7070
}

0 commit comments

Comments
 (0)