-
Notifications
You must be signed in to change notification settings - Fork 318
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
能不能搞个docker版的? #59
Comments
同问 |
@Troray @cqboyone 其实,本项目已经非常方便在线部署了呢。具体步骤如下:
大致是这样,细节上略有出入。当然,如果自己服务器,同样也很方便,只需要构建产物,然后 域名 及Nginx 即可。 |
@nicejade 实际上并没有那么方便。因为yarn 安装的时候,依赖问题其实比较麻烦。
|
@kingname 嗯,这可能是项目设定没有完全修改所致?在后面的设计中,不再引入 prerender-spa-plugin 来解决预渲染问题;按道理不该存在 chromium 安装问题呢。如果仍存在,可讲 prerender-spa-plugin 相关依赖,直接做删除处理即可。 这边会抽空尽快检查下,以做修复。当然,做一个 docker 版本,来方便快速的部署个在线版,是个很棒的建议:)。 |
@kingname 在最新的修改中,已经移除 prerender-spa-plugin 这个插件,那么可以基于 npm / yarn,轻松构建并部署在后台,而不会遇到依赖安装问题。 |
@Troray @cqboyone @kingname 已将最新版本使用 Docker 打包镜像并上传至 Docker Hub,可通过如下方式进行使用: docker run -d -p [Your-Specified-Port]:80 nicejade/markdown-online-editor
# Eg:
docker run -d -p 8866:80 nicejade/markdown-online-editor 如果您在本地执行,只需打开网址 http://localhost:8866 即可访问。如果在服务器运行,可以通过 http://[Server-IP]:8866 来访问,如果要配备域名,可通过。 |
能够方便快速的部署个在线版的
The text was updated successfully, but these errors were encountered: