fixing bugs with ci pipeline

This commit is contained in:
GotthardG
2024-12-16 14:12:38 +01:00
parent cd13b16f0b
commit d6ac89b5d8
2 changed files with 6 additions and 4 deletions

View File

@ -43,7 +43,8 @@ deploy:
only:
- main
variables:
EVIRONMENT: ENVIRONMENT=test
PORT: 8081 # Set the port to run the application on
ENVIRONMENT: test # Set the environment to test
script:
- echo "Updating repository..."
- git pull origin main # Update the repository with the latest code
@ -51,9 +52,9 @@ deploy:
- source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt # Install the required Python dependencies
- bash ./make_openapi_client.sh # Re-generate OpenAPI client library
- echo "Running the application..."
- echo "Running the application on port $PORT..."
- cd backend
- python3.8 -m main # Replace with the exact command to start your app
- python3.8 -m main # The app will now use $PORT for binding
release:
stage: release