原文链接: 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
1
isCyan 2017-01-06 14:38:57 +08:00
fork, create a project on daocloud with the url of your repo, build, run...
|