Download Node.js. Run this followed commands:
# Install dependencies
npm install
# Serve at localhost:1234
npm run dev
# Build for production in the dist/ directory
npm run buildfrom https://github.com/brunosimon/folio-2019(https://github.com/briteming/folio-2019)------------------------------------------------补充说明:在本地机器上,git clone https://github.com/brunosimon/folio-2019 cd folio-2019npm installnpm run build(会在当前目录下,生成dist目录)cd dist12799@DESKTOP-B6LK9IO MINGW64 ~/folio-2019/dist (master)
$ ls
assets/ draco/ favicon/ index.html models/ social/ sounds/
(可见dist目录就是一个静态网站的根目录)$ php -S 127.0.0.1:1234(或者运行python3 -m http.server 1234)在你的浏览器里访问127.0.0.1:1234 即可看到网站效果。还可以导入项目https://github.com/briteming/folio-2019到vercel.com/new中,就像我以前导入静态博客程序那样操作。我得到了网址https://folio-2019-nu.vercel.app/。https://bruno-simon.com/,程序作者搭建的网站。
No comments:
Post a Comment