Hexo环境的Docker自动化部署

 Docker_Hexo
===========

### Note: Only For CentOS/RedHat Linux. Currently

# What Is Hexo?

Hexo Is A Static Blog, Which Is Written In Node.js. 

Users Can Write Markdown Files(.md), And Then A Site Is Generated Silently O(∩_∩)O~ 

# What Is This Docker For?

This Docker Auto Configure Node.js Environment, Make Blog Written A Piece Of Cake~

# How To Use

First You Need To Grund x Auth to docker.sh File Or Use "sh docker.sh" To Proceed All The Commands.
    
Then The File Can Provide The Following Functions:

1. install
    
    Install Docker-io with yum.

1. start|stop|restart

    Start|Stop|Restart Docker In Daemon Mode.

1. build_hexo [alias build]

    Build A Image, Which Include Nodejs, Redis.

    Install Basic Structure Of Hexo And It's Dependence. 

1. start_hexo

    Start Hexo Container And Make It Listen 4000 Port Of The Host!


** I Strongly Suggest That Run The Commands Depends On Your Own Situation. **

After All Done, curl http://hostip:4000/

Then Congratulations!  

# Left Work

1. Make A Website OS Which Users Can Write Blog On The Web!
2. Make It A Git@OSC Auto-deploy Environment. Any Changes Will Be Marked!
3. Make It Different OS Supported!

# Contributors

Justin Chou <[email protected]>
Waiting For You...

你可能感兴趣的:(博客,自动化,docker,hexo)