sun-panel icon indicating copy to clipboard operation
sun-panel copied to clipboard

[Feature] 部署到 koyeb 报错

Open Avey777 opened this issue 9 months ago • 5 comments

Build ready to start ▶️
>> Cloning github.com/Avey777/sun-panel.git commit sha 25f46209d97ae7bd6de29c39f93fd4d83932eb06 into /workspace
Initialized empty Git repository in /workspace/.git/
From https://github.com/Avey777/sun-panel
 * branch            25f46209d97ae7bd6de29c39f93fd4d83932eb06 -> FETCH_HEAD
HEAD is now at 25f4620 Update README.md
Previous image with name "registry01.prod.koyeb.com/k-a25c5d05-c426-4c7d-b1cc-4bd134c3c86a/84348fef-67a3-4bd7-b532-c6c0da36b8f7:latest" not found
3 of 4 buildpacks participating
heroku/nodejs-engine       2.6.2
heroku/nodejs-pnpm-engine  2.6.2
heroku/nodejs-pnpm-install 2.6.2
Layer cache not found
[Heroku Node.js Engine Buildpack]
[Checking Node.js version]
Node.js version not specified, using 20.x
Resolved Node.js version: 20.10.0
[Installing Node.js distribution]
Downloading Node.js 20.10.0
Extracting Node.js 20.10.0
Installing Node.js 20.10.0
- Debug info
  - Corepack Requirement Error
! A pnpm lockfile (`pnpm-lock.yaml`) was detected, but the
! version of `pnpm` to install could not be determined.
!
! `pnpm` may be installed via the `heroku/nodejs-corepack`
! buildpack. It requires the desired `pnpm` version to be set
! via the `packageManager` key in `package.json`.
!
! To set `packageManager` in `package.json` to the latest
! `pnpm`, run:
!
! `corepack enable`
! `corepack use pnpm@*`
!
! Then commit the result, and try again.
ERROR: failed to build: exit status 1
exit status 51

希望可以部署到:https://app.koyeb.com/

Avey777 avatar May 12 '24 15:05 Avey777

image

Avey777 avatar May 12 '24 15:05 Avey777

sun-panel 目前需要在一个可运行二进制的环境中运行,不能再纯node环境运行,请确认该站的环境

hslr-s avatar May 13 '24 04:05 hslr-s

docker 可以部署,但是自己域名代理 koyeb 域名,提升域名多次重定向

Avey777 avatar May 13 '24 05:05 Avey777

多次重定向,应该与项目本身没有关系,看一下是不是代理域名的工具配置有问题,另外项目暂时不支持部署在二级路径下,看一下是不是这个问题。

hslr-s avatar May 13 '24 05:05 hslr-s

直接在koyeb 使用 docker 默认部署的, 应该不会在二级路径下。 使用的 cloudflare 代理的 koyeb 的域名,就简单的域名代理配置,没有太多可选的功能。 koyeb.com 您可以尝试下嘛?

这个提供了免费使用的一个 web 服务, 对于我们不想折腾并且可以稳定使用非常有帮助,是不可多得的选择!

Avey777 avatar May 13 '24 05:05 Avey777