This commit is contained in:
吴昊天 2026-09-23 16:38:53 +08:00
commit 018cf95842
3 changed files with 9 additions and 3 deletions

View File

@ -35,7 +35,7 @@ $host = $_SERVER['HTTP_HOST'];
<a href="<?php echo 'http://'.$host;?>" class="btn mid">进入前台</a>
</div>
<div class="admin btn">
<a href="<?php echo 'http://'.$host;?>/admin" class="btn btn_submit J_install_btn mid">进入后台</a>
<a href="<?php echo 'http://'.$host;?>/admin/" class="btn btn_submit J_install_btn mid">进入后台</a>
</div>
</div>
</div>

View File

@ -6,6 +6,9 @@ server {
root /var/www/public;
# 端口映射场景(宿主机 8011 -> 容器 80):目录补斜杠 301 使用相对 Location,
# 避免跳转后丢失宿主机映射端口
absolute_redirect off;
location / {
# try_files $uri /index.php$is_args$args;

7
run.sh
View File

@ -17,6 +17,9 @@ print_info() { echo -e "${GREEN}[INFO]${NC} $1"; }
print_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
print_error() { echo -e "${RED}[ERROR]${NC} $1"; }
# OSC 8 hyperlink:在 VS Code / Trae / iTerm2 / macOS Terminal 等终端里渲染为可点击链接
hyperlink() { printf '\e]8;;%s\a%s\e]8;;\a' "$1" "${2:-$1}"; }
# 帮助信息
show_help() {
echo -e "${GREEN}CRMEB Docker 管理脚本${NC}"
@ -114,7 +117,7 @@ do_start() {
echo ""
docker-compose ps
echo ""
print_info "访问地址: http://localhost:8011"
print_info "访问地址: $(hyperlink 'http://localhost:8011')"
}
# 安装(清理数据并启动)
@ -135,7 +138,7 @@ do_install() {
echo ""
docker-compose ps
echo ""
print_info "安装完成!请访问 http://localhost:8011 进行安装向导"
print_info "安装完成!请访问 $(hyperlink 'http://localhost:8011') 进行安装向导"
}
# 重启容器