-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from arg-tech/deploy
deployment
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |