diff --git a/.drone.yml b/.drone.yml index 19a313f..e62ab19 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,6 +29,7 @@ steps: source: - dist/* target: /opt/1panel/apps/openresty/openresty/www/sites/epic7/index + strip_components: 1 - name: set permissions image: appleboy/drone-ssh @@ -44,6 +45,7 @@ steps: - echo "=== 设置文件权限 ===" - chown -R www-data:www-data /opt/1panel/apps/openresty/openresty/www/sites/epic7/index/ - chmod -R 755 /opt/1panel/apps/openresty/openresty/www/sites/epic7/index/ - - echo "=== 重启nginx服务 ===" - - systemctl reload nginx || echo "nginx reload failed, trying restart" - - systemctl restart nginx || echo "nginx restart failed" \ No newline at end of file + - echo "=== 重新加载OpenResty配置 ===" + - docker exec $(docker ps -q --filter "name=1Panel-openresty") nginx -s reload || echo "Failed to reload OpenResty config" + - echo "=== 检查OpenResty容器状态 ===" + - docker ps | grep openresty || echo "OpenResty container not found" \ No newline at end of file