File tree 3 files changed +32
-8
lines changed
3 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
DB_CONNECTED = false
2
2
AGIXT_AUTO_UPDATE = true
3
- AGIXT_API_KEY =
4
3
AGIXT_HUB = AGiXT/light-hub
5
- AGIXT_URI = http://agixt:7437
4
+ AGIXT_API_KEY =
5
+ UVICORN_WORKERS = 4
6
6
GITHUB_USER =
7
7
GITHUB_TOKEN =
8
- UVICORN_WORKERS = 6
9
8
POSTGRES_SERVER = db
10
- POSTGRES_DB = postgres
11
9
POSTGRES_PORT = 5432
10
+ POSTGRES_DB = postgres
12
11
POSTGRES_USER = postgres
13
- POSTGRES_PASSWORD = postgres
12
+ POSTGRES_PASSWORD = postgres
13
+ AGIXT_URI = http://agixt:7437
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
set -e
4
+
5
+ # Check if .env file exists
6
+ if [ -f " .env" ]; then
7
+ echo " Sourcing .env file..."
8
+ source .env
9
+ elif [ -f " ../.env" ]; then
10
+ echo " Sourcing ../.env file..."
11
+ source ../.env
12
+ else
13
+ # Check if .env.example file exists in the current directory
14
+ if [ -f " .env.example" ]; then
15
+ echo " No .env file found, sourcing .env.example from current directory..."
16
+ source .env.example
17
+ else
18
+ # Check if .env.example file exists in the parent directory
19
+ if [ -f " ../.env.example" ]; then
20
+ echo " No .env or ../.env file found, sourcing .env.example from parent directory..."
21
+ source ../.env.example
22
+ else
23
+ echo " No .env, ../.env, or .env.example file found!"
24
+ exit 1
25
+ fi
26
+ fi
27
+ fi
28
+
4
29
workers=" ${UVICORN_WORKERS:- 4} "
5
30
6
31
if [ " $DB_CONNECTED " = " true" ]; then
@@ -23,6 +48,5 @@ if [ "$DB_CONNECTED" = "true" ]; then
23
48
fi
24
49
# Install AGiXT Hub
25
50
python3 Hub.py
26
- echo " Starting AGiXT..."
27
- sleep 5
51
+ echo " Starting AGiXT... Please wait until you see 'Applicaton startup complete' before opening Streamlit..."
28
52
uvicorn app:app --host 0.0.0.0 --port 7437 --workers $workers --proxy-headers
Original file line number Diff line number Diff line change 1
- v1.3.19
1
+ v1.3.20
You can’t perform that action at this time.
0 commit comments