diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c57f883 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +# Only modify variables that have a comment above them +# Contact IWG if you wish to alter the template otherwise + +name: Deploy +on: + push: + branches: main + pull_request: + branches: ['*'] + +jobs: + deploy: + name: Environments + uses: arg-tech/deployment-templates/.github/workflows/default-deploy-template.yml@main + secrets: inherit + with: + # Specify the target production server + target_production_server_nickname: argand + # Define a URL for your app, without the http:// or www prefixes + full_app_url: amf-ptc.amfws.arg.tech + # The port that is exposed on localhost (must be the same as in docker-compose.yml) + app_port: 5003 diff --git a/boot.sh b/boot.sh index 7a22f1c..b24ca18 100644 --- a/boot.sh +++ b/boot.sh @@ -1,3 +1,3 @@ #!/bin/sh source venv/bin/activate -exec gunicorn -b :5000 --access-logfile - --error-logfile - app --timeout 300 +exec gunicorn -b :5003 --access-logfile - --error-logfile - app --timeout 300 diff --git a/requirements.txt b/requirements.txt index bdca806..fe54faa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -Flask==2.0.3 -requests==2.23.0 -numpy==1.24.1 -transformers==4.39.3 -torch==2.0.0 -datasets==2.11.0 -amf-fast-inference==0.0.3 -xaif_eval==0.0.9 \ No newline at end of file +Flask +requests +numpy +transformers +torch +datasets +amf-fast-inference +xaif_eval \ No newline at end of file