mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-25 07:25:42 -05:00
Modified few steps
This commit is contained in:
parent
ecbd7bfd12
commit
d5818f96ff
@ -3,9 +3,9 @@ This directory contains scripts for migrating an SQLite database to a PostgreSQL
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Postgre installed and running
|
||||
- Liquibase installed
|
||||
- Execution of Liquibase scripts
|
||||
- Postgres installed and running
|
||||
- Liquibase installed (Automated with [[Postgres + docker compose setup]])
|
||||
- Execution of Liquibase scripts (Automated with [[Postgres + docker compose setup]])
|
||||
- SQLite database file(s) to be migrated(for upgrades only)
|
||||
|
||||
## Setup
|
||||
@ -42,7 +42,7 @@ ServerID - server id for the server
|
||||
PSQL_PATH - path to Postgres psql
|
||||
Example: `docker exec -i artsentry-services-postgres-1 psql`
|
||||
|
||||
`artsentry-services-postgres-1` - name of the Docker container which can be found by running `docker ps`
|
||||
`artsentry-services-postgres-1` - name of the Docker container which can be found by running `docker ps` ([[running services.png]])
|
||||
|
||||
#### New Server Install
|
||||
|
||||
@ -88,6 +88,14 @@ If you want to redirect the output to a different file, use the following comman
|
||||
./database_migration.sh 'docker exec -i artsentry-services-postgres-1 psql' > migration.log
|
||||
```
|
||||
|
||||
#### Start VCS Server
|
||||
After completing the required steps in [[Postgres + docker compose setup]] and executing the script(s) above, start the VCS Server
|
||||
|
||||
```bash
|
||||
systemctl start vcs
|
||||
```
|
||||
|
||||
|
||||
## Scripts Description(FYI)
|
||||
|
||||
- **database_migration.sh**: Main script that orchestrates the migration process
|
||||
|
||||
@ -174,7 +174,4 @@ docker compose --env-file ../compose-cfg/.env down
|
||||
|
||||
To check all the running services see: [[running services.png]]
|
||||
|
||||
After the docker compose services are running start the VCS server
|
||||
```bash
|
||||
systemctl start vcs
|
||||
```
|
||||
After the docker compose services are running follow the [[Database Migration Scripts]] before starting the VCS Server
|
||||
|
||||
Loading…
Reference in New Issue
Block a user