#zBlog.Go
zgoblog is forked and edit from GoBlog
zBlog.Go
requires Go 1.2 or above.
Use go get command:
go get github.com/jack-zh/zgoblog
Then you can find binary file GoBlog(.exe)
in $GOPATH/bin
.
Make a new dir to run zBlog.Go
:
cd new_dir
zgoblog
Then it will unzip static files in new_dir
, initialize raw data and start server at localhost:8080
.
Visit localhost:8080/login/
to enter administrator with username admin
and password admin
. You'd better change them after installed successfully.
I prefer to use nginx as proxy. The server section in nginx.conf
:
server {
listen 80;
server_name your_domain;
charset utf-8;
access_log /var/log/nginx/your_domain.access.log;
location / {
proxy_pass http://127.0.0.1:8080;
}
location /static {
root /var/www/your_domain; # binary file is in this directory
expires 1d;
add_header Cache-Control public;
access_log off;
}
}
Create issues or pull requests here.
You can edit static/hsterm/config.js
to set your geek message from menu.
0.3
The MIT License