Skip to content

Commit

Permalink
added deployement config
Browse files Browse the repository at this point in the history
  • Loading branch information
somaye-moslemnejad committed Jul 1, 2024
1 parent 4ebb87d commit 18dcf02
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 5 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-evaluation-score.amfws.arg.tech
# The port that is exposed on localhost (must be the same as in docker-compose.yml) ###
app_port: 8000
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/amf-evaluation-score.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def is_valid_json(my_json):


@application.route('/file', methods=['GET', 'POST'])
def get_data():
def get_data_file():
if request.method == 'POST':

f1 = request.files['file1']
Expand Down Expand Up @@ -263,13 +263,12 @@ def get_data():
return render_template('docs.html')

@application.route('/json', methods=['GET', 'POST'])
def get_data():
def get_data_json():
if request.method == 'POST':

f1 = request.files['file1']
f2 = request.files['file2']
f1 = request.args.get['file1']
f2 = request.args.get['file2']

request.args.get('')

true = True
null = None
Expand Down

0 comments on commit 18dcf02

Please sign in to comment.