Skip to content

Commit

Permalink
Merge pull request #2 from arg-tech/deploy
Browse files Browse the repository at this point in the history
deployment
  • Loading branch information
raruidol authored Sep 4, 2024
2 parents c676820 + bb83bb7 commit 40490be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion boot.sh
Original file line number Diff line number Diff line change
@@ -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
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Flask
requests
numpy
transformers
torch
datasets
amf-fast-inference
xaif_eval

0 comments on commit 40490be

Please sign in to comment.