Skip to content

Commit

Permalink
removes debug prints for testrun
Browse files Browse the repository at this point in the history
  • Loading branch information
moaath committed Jun 6, 2024
1 parent 6add95e commit 763c8e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions service/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000

ENV FLASK_APP=api_server.py
#CMD ["flask", "run", "--host=0.0.0.0"]
CMD ["flask", "run", "--debug", "--host=0.0.0.0"]
CMD ["flask", "run", "--host=0.0.0.0"]
#CMD ["flask", "run", "--debug", "--host=0.0.0.0"]
1 change: 0 additions & 1 deletion service/api/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def parse_yaml():
try:
yaml_data = request.files['file'].read().decode('utf-8')
username = request.form.get("username")
app.logger.debug(username)
user_directory = generate_user_directory(username)

pid = os.fork()
Expand Down
4 changes: 2 additions & 2 deletions service/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ services:
MYSQL_USER: date
MYSQL_PASSWORD: somepassword
MYSQL_EVENT_SCHEDULER: 'ON'
ports:
- 5000:3306
#ports:
# - 5000:3306

volumes:
mysql_db:
1 change: 0 additions & 1 deletion service/www/match.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function yaml_dump(array $data){
}else{
$yaml_file = 'uploads/data.yaml';
}
echo $yaml_file;
file_put_contents($yaml_file, $yaml);

$api_url = 'http://api:5000/test_my_luck';
Expand Down

0 comments on commit 763c8e3

Please sign in to comment.