Source of arondight.github.io.
bash
git
npm
andnpx
git clone https://github.com/Arondight/arondight.github.io.git
cd arondight.github.io
npm install
npm run serve
Then visit localhost:4000 in browser.
npm run deploy
Home Page: http://arondight.github.io
License: MIT License
Source of arondight.github.io.
bash
git
npm
and npx
git clone https://github.com/Arondight/arondight.github.io.git
cd arondight.github.io
npm install
npm run serve
Then visit localhost:4000 in browser.
npm run deploy
导入数据前清了多说的后台,导入后似乎评论还在,但是无法和页面对应了。
Ref #7
INFO Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)
at /home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/lib/middlewares/route.js:27:11
at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
at compression (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/compression/index.js:218:5)
at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
at /home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/lib/middlewares/header.js:6:5
at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
at Function.handle (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:186:3)
at Server.app (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:51:37)
at emitTwo (events.js:100:13)
at Server.emit (events.js:185:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:537:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
Github Pages 上能够访问正常
因为每次更新完主题,我都有忘了执行这个脚本的倾向。
当前这个地址是写死的,不太好。
一个示例输出如下:
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Console `help` has not been registered yet!
at /home/ispeller/Repo/arondight.github.io/node_modules/hexo/lib/hexo/index.js:194:14
at Promise._execute (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:272:9)
at Promise._resolveFromExecutor (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:474:18)
at new Promise (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
at Hexo.call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/lib/hexo/index.js:188:10)
at runHexoCommand (/usr/lib/node_modules/hexo/node_modules/hexo-cli/lib/index.js:58:17)
at tryCatcher (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:503:31)
at Promise._settlePromise (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:684:18)
at Async._drainQueue (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:126:16)
at Async._drainQueues (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:136:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:16:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
packages.json
如下(同样适用于#1):
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.2.0"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-cli": "^1.0.1",
"hexo-deployer-git": "0.0.4",
"hexo-generator-archive": "^0.1.2",
"hexo-generator-baidu-sitemap": "^0.1.2",
"hexo-generator-category": "^0.1.2",
"hexo-generator-feed": "^1.0.3",
"hexo-generator-index": "^0.1.3",
"hexo-generator-sitemap": "^1.1.2",
"hexo-generator-tag": "^0.1.1",
"hexo-renderer-ejs": "^0.1.1",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.1.2"
}
}
执行./update.sh
后,本地允许和上游不一致(submodule 同步其上游)
智障了一次,boom。
# ./init.sh
正克隆到 '.deploy_git'...
remote: Counting objects: 1920, done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 1920 (delta 74), reused 0 (delta 0), pack-reused 1713
接收对象中: 100% (1920/1920), 1.14 MiB | 421.00 KiB/s, 完成.
处理 delta 中: 100% (840/840), 完成.
检查连接... 完成。
failed: npm or cnpm is needed but not found, quit.
# ./init.sh
warn: it seems this repo has been initialized, do nothing.
否则在某些情况下无法剔除已经无用的文件
脚本大量引用其他脚本,变量可能造成冲突。
否则在提交失败的情况下,再次执行./push.sh
会多一次提交。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.