+
Skip to content

修复服务绑定API一直刷新界面的问题 #3

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

Merged
merged 1 commit into from
Jul 2, 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
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"license": "ISC",
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@ant-design/pro-components": "^2.6.43",
"@ant-design/pro-components": "2.7.9",
"@originjs/vite-plugin-federation": "^1.3.3",
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
"@types/lodash-es": "^4.17.12",
Expand Down
Binary file modified frontend/packages/core/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/resource/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

appName="aoplatform"
appName="apipark"

OUTPUT_DIR=""
if [ -z "$1" ]; then
Expand Down
26 changes: 13 additions & 13 deletions scripts/resource/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
if [ ! -d "work" ]; then
mkdir -p work
fi
# aoplatform 二进制程序的路径
AOPLATFORM_BIN="./aoplatform"
APP="apipark"
APP_BIN="./${APP}"
DATE=$(date "+%Y-%m-%d %H:%M:%S")

# 日志文件的路径,这里使用当前目录下的 aoplatform.log 文件
LOG_FILE="work/aoplatform-${DATE}.log"
# 日志文件的路径
LOG_FILE="work/${APP}-${DATE}.log"

# PID 文件的路径,用于存储进程 ID
PID_FILE="work/aoplatform.pid"
PID_FILE="work/${APP}.pid"

is_program_running() {
# 使用 ps 命令查找程序,并通过 grep 过滤结果
Expand All @@ -27,18 +27,18 @@ is_program_running() {
start() {
# 创建新的日志文件
date "+%Y-%m-%d %H:%M:%S" >> "$LOG_FILE"
echo "Starting aoplatform..." >> "$LOG_FILE"
echo "Starting ${APP}..." >> "$LOG_FILE"

# 启动 aoplatform 并重定向输出到日志文件
# 启动并重定向输出到日志文件
# 使用 nohup 和 & 让程序在后台运行
nohup "$AOPLATFORM_BIN" >> "$LOG_FILE" 2>&1 &
nohup "$APP_BIN" >> "$LOG_FILE" 2>&1 &
PID=$!
echo ${PID} > "$PID_FILE"
sleep 3
if is_program_running ${PID}; then
echo "aoplatform started with PID ${PID}, output is being logged to $LOG_FILE"
echo "${APP} started with PID ${PID}, output is being logged to $LOG_FILE"
else
echo "aoplatform failed to start, see $LOG_FILE for details"
echo "${APP} failed to start, see $LOG_FILE for details"
cat "$LOG_FILE"
exit 1
fi
Expand All @@ -52,7 +52,7 @@ stop() {

# 检查 PID 是否存在
if [ -z "$PID" ]; then
echo "No aoplatform process is running."
echo "No ${APP} process is running."
return
fi

Expand All @@ -61,10 +61,10 @@ stop() {

# 确认进程是否已停止
if kill -0 "$PID" 2>/dev/null; then
echo "aoplatform is still running, attempting to force stop."
echo "${APP} is still running, attempting to force stop."
kill -9 "$PID"
else
echo "aoplatform stopped successfully."
echo "${APP} stopped successfully."
fi

# 删除 PID 文件
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载