[fix]: env in docker config
This commit is contained in:
@@ -60,7 +60,7 @@ class EligibilityCheckService(BaseService):
|
||||
}
|
||||
|
||||
return response_data
|
||||
except ValidationError as err:
|
||||
except (ValidationError, ValueError) as err:
|
||||
logger.error(f"Validation Error: {err.messages}")
|
||||
return jsonify({
|
||||
"message": "Validation exception"
|
||||
|
||||
@@ -17,6 +17,9 @@ class Transaction(db.Model):
|
||||
|
||||
@classmethod
|
||||
def create_transaction(cls, id, account_id, customer_id, type, channel, msisdn, country_code,):
|
||||
if cls.query.filter_by(id=id).first():
|
||||
raise ValueError("Transaction with this id already exists")
|
||||
|
||||
transaction = cls(
|
||||
id=id,
|
||||
customer_id=customer_id,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
services:
|
||||
digifi-bank-to-product-core:
|
||||
build: .
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${APP_PORT:-4500}:5000"
|
||||
environment:
|
||||
|
||||
+6
-13
@@ -1,6 +1,12 @@
|
||||
# Flask and Extensions
|
||||
Flask==2.3.3
|
||||
|
||||
# Database
|
||||
flask-sqlalchemy
|
||||
flask-migrate
|
||||
psycopg2-binary
|
||||
alembic
|
||||
|
||||
# Schema for validations
|
||||
Flask-Marshmallow==0.15.0
|
||||
marshmallow==3.19.0
|
||||
@@ -14,19 +20,6 @@ gunicorn
|
||||
# Swagger
|
||||
flask-swagger-ui
|
||||
|
||||
# Database
|
||||
flask-sqlalchemy
|
||||
flask-migrate
|
||||
psycopg2-binary
|
||||
alembic
|
||||
|
||||
|
||||
# Env
|
||||
python-dotenv
|
||||
|
||||
|
||||
|
||||
|
||||
# Logging (Python Standard Library, for reference)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user