generated from dopt-python/py311
update build pipeline and deployment config
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
DOPT_STOP_FOLDER_NAME=python
|
||||
DOPT_DB_CRM=data/wce_crm.db
|
||||
DOPT_DB_MAIN=data/wce_grunderfassung.db
|
||||
DOPT_DB_CRM=data/db/wce_crm.db
|
||||
DOPT_DB_MAIN=data/db/wce_grunderfassung.db
|
||||
DOPT_PATH_LOGGING=data/logs
|
||||
DOPT_PATH_FILE_STORAGE=data/files
|
||||
DOPT_ALEMBIC_BASE=python/alembic
|
||||
+5
-10
@@ -45,15 +45,10 @@ Write-Output "Deleted outstanding artifacts successfully"
|
||||
|
||||
Write-Output "Create data folder..."
|
||||
$pattern = "dopt_nafka_wce-crm_v*"
|
||||
$data_folder = Join-Path -Path $ENV_PATH -ChildPath 'data'
|
||||
|
||||
if (-not (Test-Path -Path $data_folder)){
|
||||
Write-Output "[PWSH] Data path not existing. Create..."
|
||||
New-Item -Path $data_folder -ItemType Directory
|
||||
}
|
||||
else {
|
||||
Write-Output "Data path already exists."
|
||||
}
|
||||
create_folder -base_path $ENV_PATH -folder_name 'data' -recreate
|
||||
create_folder -base_path $ENV_PATH -folder_name 'data/db'
|
||||
create_folder -base_path $ENV_PATH -folder_name 'data/files'
|
||||
|
||||
|
||||
Write-Output "Building package..."
|
||||
@@ -93,10 +88,10 @@ if ($? -eq $false){
|
||||
}
|
||||
Write-Output "Successfully installed package"
|
||||
|
||||
# copy database file
|
||||
# copy database files
|
||||
Write-Output "Copying database files..."
|
||||
$copy_file = Join-Path -Path $SRC_PATH -ChildPath 'data/db/wce_grunderfassung.db'
|
||||
$dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data'
|
||||
$dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data/db'
|
||||
Copy-Item -Path $copy_file -Destination $dest_file -Force
|
||||
if ($? -eq $false){
|
||||
Write-Output "[PWSH] Exiting script because there were errors while copying database 'Grunderfassung'"
|
||||
|
||||
Reference in New Issue
Block a user