fixing bugs with ci pipeline

This commit is contained in:
GotthardG
2024-12-16 14:31:00 +01:00
parent 8f79e5a430
commit 6b493757c1
2 changed files with 34 additions and 23 deletions

View File

@@ -44,16 +44,16 @@ deploy:
- main
variables:
CI: "true" # Mark this as a CI run
ENVIRONMENT: dev # Use dev environment settings
PORT: 8081 # Set the port for the application
ENVIRONMENT: test # Use test environment settings
PORT: 8081
script:
- echo "Setting up dependencies..."
- echo "Setting up Python dependencies..."
- source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt
- echo "Verifying SSL files..."
- echo "Running the application with dev SSL certificates on port $PORT..."
- echo "Starting the application to test startup with SSL..."
- cd backend
- python3.8 -m main
- python3.8 -m main # App will start, validate, and exit
- echo "Application startup validation completed successfully."
release:
stage: release