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

[Feature] 是否可以支持在vercel或者railway中部署该项目 #20

Closed
chongya-369 opened this issue May 17, 2023 · 7 comments
Closed
Labels
enhancement New feature or request

Comments

@chongya-369
Copy link

是否可以支持在vercel或者railway中部署该项目

@chongya-369 chongya-369 added the enhancement New feature or request label May 17, 2023
@lcjqyml
Copy link
Owner

lcjqyml commented May 22, 2023

测试了railway,可以部署。

  1. 自建一个代码库,添加Dockerfile引用lcjqyml/wechatbot:latest,参考:https://github.com/lcjqyml/wechatbot-railway
  2. Railway中建一个基于上面新建代码库的 GitHub Repo
  3. 在新建的项目中,添加必须的 Variable 环境变量,如下图:
    image
  4. 重新部署后,查看Deploy logs确保配置生效,如下图:
    image
  5. railway日志中二维码无法识别,可以将登陆二维码链接copy出来扫码登陆:
    image
  6. Done!

@lcjqyml lcjqyml closed this as completed May 22, 2023
@lcjqyml lcjqyml pinned this issue May 22, 2023
@Nothingness-Void
Copy link

测试后也可以直接在zeabur.com使用,环境变量同理,不过zeabur.com每个月不限量使用

@huluwa2046
Copy link

zeabur
你好请问下 zeaburVariable 环境变量是写ip地址吗? 其他还有什么需要调整的,我设置好一直提醒机器人异常,不知道什么情况

@Nothingness-Void
Copy link

zeabur
你好请问下 zeaburVariable 环境变量是写ip地址吗? 其他还有什么需要调整的,我设置好一直提醒机器人异常,不知道什么情况

我的环境变量是http://ip:端口

@AmandaloveYang
Copy link

23:59:57 17 | # Install dependencies
23:59:57exit status 1
23:59:57 18 | ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
23:59:57 19 | >>> RUN poetry install && npm install && rm -rf ~/.npm/
23:59:57 20 | COPY . .
23:59:57 21 | CMD ["npm", "run", "dev"]
23:59:57--------------------
23:59:57exit status 1
卡在这一步是为啥呢?

@zsanjin-p
Copy link

zeabur部署卡这了

image

@zsanjin-p
Copy link

zeabur部署卡这了

image

过了四五十分钟看一眼还卡着,现在过了2小时一看居然才好,算是能用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants