Skip to content

Commit b9d49b6

Browse files
GHkrishnaKambleSahil3
authored andcommitted
fix: local setup issues (#1155)
* Update start_agent.sh Signed-off-by: Krishna Waske <[email protected]> * Update .env.demo fix: correct script for local build Signed-off-by: Krishna Waske <[email protected]> --------- Signed-off-by: Krishna Waske <[email protected]> Signed-off-by: Sahil Kamble <[email protected]>
1 parent fb5ebde commit b9d49b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.env.demo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ AFJ_AGENT_SPIN_UP=/agent-provisioning/AFJ/scripts/docker_start_agent.sh
121121
AFJ_AGENT_ENDPOINT_PATH=/agent-provisioning/AFJ/endpoints/
122122
# Uncomment bellow three lines and comment the above to start services locally without using docker, using pnpm
123123
# AFJ_AGENT_TOKEN_PATH=/apps/agent-provisioning/AFJ/token/
124-
# AFJ_AGENT_SPIN_UP=/apps/agent-provisioning/AFJ/scripts/docker_start_agent.sh
124+
# AFJ_AGENT_SPIN_UP=/apps/agent-provisioning/AFJ/scripts/start_agent.sh
125125
# AFJ_AGENT_ENDPOINT_PATH=/apps/agent-provisioning/AFJ/endpoints/
126126

127127
AGENT_PROTOCOL=http
@@ -140,4 +140,4 @@ ELK_PASSWORD=xxxxxx // ELK user password
140140

141141
ORGANIZATION=credebl
142142
CONTEXT=platform
143-
APP=api
143+
APP=api

apps/agent-provisioning/AFJ/scripts/start_agent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ if [ $? -eq 0 ]; then
209209

210210
docker rm -f "${PROJECT_NAME}" || true
211211

212-
docker-compose -f $FILE_NAME --project-name "${PROJECT_NAME}" up -d
212+
docker compose -f $FILE_NAME --project-name "${PROJECT_NAME}" up -d
213213
if [ $? -eq 0 ]; then
214214

215215
n=0
@@ -271,4 +271,4 @@ else
271271
echo "ERROR : Failed to execute!" && exit 125
272272
fi
273273

274-
echo "Total time elapsed: $(date -ud "@$(($(date +%s) - $START_TIME))" +%T) (HH:MM:SS)"
274+
echo "Total time elapsed: $(date -ud "@$(($(date +%s) - $START_TIME))" +%T) (HH:MM:SS)"

0 commit comments

Comments
 (0)