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

是否可以适配mogenius #146

Closed
ghost opened this issue Sep 18, 2022 · 5 comments
Closed

是否可以适配mogenius #146

ghost opened this issue Sep 18, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2022

mogenius免费容器,支持Docker部署

https://studio.mogenius.com/

@luolongfei
Copy link
Owner

@typechoblog 告诉你个好消息,目前我做的 koyeb 的镜像是可以兼容 mogenius 平台的。这个是我的 demo,可以正常跑:
https://freenom-prod-llf-jftarh.mo1.mogenius.io

image

image

@luolongfei
Copy link
Owner

luolongfei commented Sep 18, 2022

部署过程有几个需要注意的点:
0、部署的时候,docker 镜像仓库地址填写:luolongfei/freenom:koyeb

image

仓库在 https://hub.docker.com/r/luolongfei/freenom 好用记得给个 star

1、这个平台很节省,默认给的配置非常非常低,基本连 fpm 都无法正常运行,新建容器后记得先到这里把所有免费配置拉满
image

image

2、在配置环境变量的时候,你可能会遇到如下报错

Snipaste_2022-09-18_21-10-27

这是由于官方的正则写得有问题,部分字符不支持,甚至不支持空格,比如你想定义 RUN_AT 肯定要用到空格,然而 mogenius 会给你报这种原始的错误。
解决办法也很简单:
将报错的行,第一行从 0 开始,找到报错的环境变量那一行,选择如下图类型的值,这里的值平台没有做验证,就绕过报错的问题了:

image

3、这个平台部署的过程很慢,观察到如下几个点,就说明部署成功了

image

image

部署成功后的域名在这里

image

4、端口记得设置为 80

image

@luolongfei luolongfei pinned this issue Sep 18, 2022
@ghost
Copy link
Author

ghost commented Sep 18, 2022

非常感谢您及时的回复和详细的教程!

@luolongfei
Copy link
Owner

不客气,有帮到你的话可以把本项目推荐给更多的人

@ghost
Copy link
Author

ghost commented Sep 18, 2022

不客气,有帮到你的话可以把本项目推荐给更多的人

我会的,非常感谢你的帮助,我没有问题了 可以close了

Repository owner locked as resolved and limited conversation to collaborators Sep 23, 2022
Repository owner deleted a comment from yltx Sep 23, 2022
@luolongfei luolongfei unpinned this issue Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant