请问一下这个应该怎么部署到 daocloud?

2017-01-06 13:53:25 +08:00
 carlace

原文链接: https://www.v2ex.com/t/294498#reply33

github 里面的源码应该怎么样部署到 daocloud ,需要什么条件。 https://github.com/ShanghaitechGeekPie/fresh

里面的 README.md 看不懂 fresh

上海科技大学新生生存手册

Deploy

this project is using docker.

please read Dockerfile before you try to deploy it.

the most important script is

cd fresh && npm install && npm run build && mv dist/assets/index.html dist/ && rm -rf node_modules Node

Environment

node >= 4 is needed and we suggest

node >= 6 Code Style

https://github.com/airbnb/javascript

Develop

make sure you have run npm install before developing.

npm start 访问 http://127.0.0.1:8989

please remove line 52 ~ 57 in webpack.config.js and change path to relative path in src/entries/index.html before you start server.

Build

npm run build Markdown

using markdown-it and parseMd

file is located at src/markdown

1562 次点击
所在节点    问与答
2 条回复
isCyan
2017-01-06 14:38:57 +08:00
fork, create a project on daocloud with the url of your repo, build, run...
carlace
2017-01-06 16:47:12 +08:00
@isCyan 可是 404 ,是怎么回事

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/332677

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX