From 59e8c06078ce40c809ede1b50383a46f67cbd61c Mon Sep 17 00:00:00 2001 From: YuehuCao Date: Thu, 14 Aug 2025 21:36:38 +0800 Subject: [PATCH] feat(alpha): make the alpha environment available --- apps/notification/alpha.env | 33 +++++++++++++++++++ .../tests/integration_tests/README.md | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 apps/notification/alpha.env diff --git a/apps/notification/alpha.env b/apps/notification/alpha.env new file mode 100644 index 0000000..c9d1683 --- /dev/null +++ b/apps/notification/alpha.env @@ -0,0 +1,33 @@ +export APP_NAME=notification +export SERVICE_API_ACCESS_HOST=0.0.0.0 +export SERVICE_API_ACCESS_PORT=8014 +export CONTAINER_APP_ROOT=/app +export LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME +export BACKEND_LOG_FILE_NAME=$APP_NAME +export APPLICATION_ACTIVITY_LOG=$APP_NAME-activity +export SENDGRID_API_KEY=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 +export EMAIL_FROM=freeleaps@freeleaps.com +export TWILIO_ACCOUNT_SID=ACf8c9283a6acda060258eadb29be58bc8 +export TWILIO_AUTH_TOKEN=ef160748cc22c8b7195b49df4b8eca7e +export SYSTEM_USER_ID=117f191e810c19729de860aa +export SMS_FROM=+16898887156 +export EMAIL_FROM=freeleaps@freeleaps.com +export SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 +export GIT_REPO_ROOT=/mnt/freeleaps/freeleaps-service-hub +export CODEBASE_ROOT=/mnt/freeleaps/freeleaps-service-hub/apps/notification +export SITE_DEPLOY_FOLDER=/mnt/freeleaps/freeleaps-service-hub/sites/notification/deploy +#!/bin/bash +export VENV_DIR=venv_t +export VENV_ACTIVATE=venv_t/bin/activate +export DOCKER_HOME=/var/lib/docker +export DOCKER_APP_HOME=$DOCKER_HOME/app +export DOCKER_BACKEND_HOME=$DOCKER_APP_HOME/$APP_NAME +export DOCKER_BACKEND_LOG_HOME=$DOCKER_BACKEND_HOME/log +export RABBITMQ_HOST=localhost +export RABBITMQ_PORT=5672 +#export MONGODB_URI="mongodb://localhost:27017/" +#export MONGODB_NAME="interview" +export MONGODB_URI="mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/" +export MONGODB_NAME="freeleaps2" +export FREELEAPS_ENV=local +export LOG_BASE_PATH=./log diff --git a/apps/notification/tests/integration_tests/README.md b/apps/notification/tests/integration_tests/README.md index 93b81da..77afe94 100644 --- a/apps/notification/tests/integration_tests/README.md +++ b/apps/notification/tests/integration_tests/README.md @@ -3,7 +3,11 @@ # run the command cd notification -source local.env +# for local environment +source local.env +python webapi/main.py & +# for alpha environment +source alpha.env python webapi/main.py & ```