A simple blog performed by node.js using hexo and travis.
This is a funny blog about some funny things :)
Site's location: https://mystories.vn
Note: you must on develop
branch when you start writing a new post.
Steps:
If you don't have hexo-cli
on your local pc, don't worry! Do like below.
./new_post.sh {your-post-name}
./source/_post/{your-post-name}.md
develop
branch. After my approvation, your post will automatically be deployed to my server. Thanks for your contribution :).If you installed hexo-cli
package. (Install guide go here)
hexo new post {your-post-name}
./source/_post/{your-post-name}.md
./deploy.sh
(only done if you are our team members).develop
branch was protected so you must checkout to new branch and create pull request to develop
branch. I will check your pull request and merge it later.)Required packages for run project on local
Install via package manager (apt/yum) or download bin from this site extract it and copy to one of your $PATH directories.
Install via npm is the easiest way to do.
sudo npm install -g hexo-cli
Install hexo-cli
(or another packages by npm with flag -g) on docker container
may catch permission error in spite of using sudo
command. For this error try this below solution.
sudo chmod 755 /root && mkdir -m 755 -p /root/.npm/_logs
Run like a normally nodejs project :) that mean you must run npm install
on the first time you run this project.
Start hexo server
hexo server -p 3000
Local blog will be available at http://localhost:3000/