From 3b54a1c85700a52b1452dcf566c688360a76ba5a Mon Sep 17 00:00:00 2001 From: raruidol Date: Fri, 23 Aug 2024 17:14:30 +0100 Subject: [PATCH 1/3] deployment --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy.yml 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 From efb7a3da4b071e387804496001fc7658ba82921f Mon Sep 17 00:00:00 2001 From: raruidol Date: Fri, 23 Aug 2024 17:17:04 +0100 Subject: [PATCH 2/3] deployment --- requirements.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 From bb83bb75510d548573628720c1c18745b4189c8b Mon Sep 17 00:00:00 2001 From: raruidol Date: Wed, 4 Sep 2024 14:12:55 +0100 Subject: [PATCH 3/3] deployment --- boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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