This commit is contained in:
2020-10-22 21:51:07 +00:00
parent 54106205af
commit bd5f57b42d
3 changed files with 31 additions and 2 deletions

2
.vscode/launch.json vendored
View File

@@ -52,7 +52,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\"

View File

@@ -515,6 +515,18 @@ https://github.com/rsubr/postgresql-portable/releases/tag/v12.1
Also this:
https://www.postgresonline.com/journal/archives/172-Starting-PostgreSQL-in-windows-without-install.html
HOW I DO IT FOR WINDOWS
=-=-=-=-=-=-=-=-=-=-=-=-
See win-x64 folder structure.
Basically download the binary for w64, extract and keep only the folders bin, lib and share
in the win-x64 data folder need to init a new database using this command:
..\postgres\bin\initdb -U postgres -D .\database
That will init a new fresh db with postgres user, no password and in a folder called database to sit beside the other data folders being disted (backup files, logs, user files)
DOCKER POSTGRES DEVELOPMENT STATION COMMANDS AND USEFUL INFO
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

View File

@@ -1,4 +1,21 @@
REM docker start dock-pg10 dock-pgadmin
REM docker run --rm --name pg -p 5432:5432 -e POSTGRES_PASSWORD=raven -e POSTGRES_DB=AyaNova -d postgres:latest
REM GONE PORTABLE INSTEAD
start C:\data\code\PostgreSQLPortable_12.0\postgresqlportable.exe
rem start C:\data\code\PostgreSQLPortable_12.0\postgresqlportable.exe
C:\data\code\postgres_13\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_13^\ayanova^" -l logfile start
@REM @ECHO OFF
@REM setlocal
@REM SET PATH="%~dp0postgres\bin";%PATH%
@REM SET PGDATA=%~dp0data\database
@REM SET PGDATABASE=AyaNova
@REM SET PGUSER=postgres
@REM SET PGPORT=5432
@REM SET PGLOCALEDIR=%~dp0postgres\share\locale
@REM "%~dp0\postgres\bin\pg_ctl" -D "%~dp0/data/database" -l %~dp0data\logs\postgreslog start
@REM ECHO Press any key to stop POSTGRES database server
@REM pause
@REM "%~dp0\postgres\bin\pg_ctl" -D "%~dp0/data/database" stop
@REM endlocal