A fast, simple & powerful blog framework, powered by Node.js. Originally forked from hexo.
#node, npm and git are prerequisite
$ sudo apt install snapd
$ sudo snap install heroku --classic
$ npm install hexo-cli -g
Login with Heroku credentials
$ heroku login
#enter heroku email and password
Setup new heroku app
heroku create -a <app-name>
Setup your blog
#this project already initiated
$ hexo init blog
$ cd blog
#change directory before running this to install
npm install hexo-deployer-heroku --save
Start the server
#no need to start local server if push directly to heroku
$ hexo server
Create a new post
$ hexo new "Hello World!"
Clean previous public and database folder
$ hexo clean
Generate static files
#generate new public and database folder for deployment
$ hexo generate
Add heroku git
#peter-blockchain
heroku git:remote -a <git repo name>
Add text @ blog > config.yml
deploy:
type: heroku
repo: <repo from heroku>
Deploy static files
$ hexo deploy
Check the heroku website
$ heroku open
- Visit the peter-blockchain website
- Read the hexo documentation
- Find hexo solutions in troubleshooting
- See the hexo plugin list and the theme list on wiki
- Find git repo in Heroku dashboard
- Also check out Getting Started on Heroku with Node.js for getting started on Heroku with Node.js
MIT