Skip to content

Latest commit

 

History

History
105 lines (79 loc) · 2.83 KB

README.md

File metadata and controls

105 lines (79 loc) · 2.83 KB

Blockchain FAQ Blog

Build Status NPM version Coverage Status Build status Gitter Discord Chat dependencies Status devDependencies Status

A fast, simple & powerful blog framework, powered by Node.js. Originally forked from hexo.

Heroku Installation

#node, npm and git are prerequisite
$ sudo apt install snapd
$ sudo snap install heroku --classic

Hexo installation

$ npm install hexo-cli -g

Quick Start

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

More Information

License

MIT