File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1616. /README.md
1717. /* /README. *
1818. /dev.sh
19- . /cli
19+ . /cli
20+ . /backend /analytics_server /mhq /config /config.ini
Original file line number Diff line number Diff line change 11volumes :
22 postgres_data :
3+ driver : local
4+ keys :
5+ driver : local
36
47services :
58 middleware-dev :
@@ -32,6 +35,7 @@ services:
3235
3336 volumes :
3437 - postgres_data:/var/lib/postgresql/15/main
38+ - keys:/app/backend/analytics_server/mhq/config
3539
3640 develop :
3741 watch :
Original file line number Diff line number Diff line change 2020
2121echo ' MHQ_STARTING SUPERVISOR'
2222
23- /app/setup_utils/generate_config_ini.sh -t /app/backend/analytics_server/mhq/config
23+ if [ -f " /app/backend/analytics_server/mhq/config/config.ini" ]; then
24+ echo " config.ini found. Setting environment variables from config.ini..."
25+ while IFS=' =' read -r key value; do
26+ if [[ " $key " =~ ^[A-Za-z_][A-Za-z0-9_]* $ && ! -z " $value " ]]; then
27+ echo " $key " =" $value " >> ~ /.bashrc
28+ fi
29+ done < " ../backend/analytics_server/mhq/config/config.ini"
30+ else
31+ echo " config.ini not found. Running generate_config_ini.sh..."
32+ /app/setup_utils/generate_config_ini.sh -t /app/backend/analytics_server/mhq/config
33+ fi
34+
2435/usr/bin/supervisord -c " /etc/supervisord.conf"
You can’t perform that action at this time.
0 commit comments