Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:Confiquration file does notexist #452

Merged
merged 27 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions scripts/check-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ source $SCRIPTS_ROOT/util.sh

logs_dir="$SCRIPTS_ROOT/../_output/logs"
DOCKER_LOG_FILE="$logs_dir/chat-docker.log"

if is_running_in_container; then
exec >> ${DOCKER_LOG_FILE} 2>&1
fi



DATA="$(date +%H:%M:%S)"
echo "# Start Chat check-all.sh ${DATA}, For local deployments, use ./check-all.sh --print-screen"

Expand Down Expand Up @@ -61,10 +59,17 @@ for binary_path in "${binary_full_paths[@]}"; do
# Print the binary path in red for not running services
echo -e "\033[0;31mService not running: $binary_path\033[0m"
fi
exit 1
done





if $all_services_running; then
for binary_path in "${binary_full_paths[@]}"; do
echo -e "\033[0;32mService running: $binary_path\033[0m"
done

# Print "Startup successful" in green
echo -e "\033[0;32mAll chat services startup successful\033[0m"
else
Expand Down
2 changes: 2 additions & 0 deletions scripts/docker-start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ logs_dir="$SCRIPTS_ROOT/../_output/logs"
DOCKER_LOG_FILE="$logs_dir/chat-docker.log"


${OPENIM_ROOT}/scripts/init-config.sh --skip

"${OPENIM_ROOT}"/scripts/start-all.sh
tail -f ${DOCKER_LOG_FILE}
2 changes: 1 addition & 1 deletion scripts/start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [ -f "$CONFIG_FILE" ]; then
else
echo ""
# The file does not exist
echo "Error: Configuration file does not exist."
echo "Error: Configuration file does not exist." $CONFIG_FILE
echo "+++ You need to execute 'make init' to generate the configuration file and then modify the configuration items."
echo ""
exit 1
Expand Down
1 change: 0 additions & 1 deletion scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ stop_services_with_name() {
check_services_with_name() {
local binary_path="$1"
pgrep -f "$binary_path" > /dev/null 2>&1

if [ $? -eq 0 ]; then
if [ -z "$SUPPRESS_OUTPUT" ]; then
echo "A process with the path $binary_path is running."
Expand Down
Loading