Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

hexo_server

hexo server on vagrant

Setup

$ bundle install --path vendor/bundle --binstubs
$ git submodule init
$ git submodule update
$ vagrant up

Test

$ rake spec

Run hexo server

nohup だと上手く起動しない...

$ vagrant ssh -c "cd /var/www/myblog/ && hexo clean && hexo server -i 192.168.33.10"

see http://192.168.33.10:4000/

File update watch

$ vagrant rsync-auto &

Create new page

$ vagrant ssh -c "cd /var/www/myblog/; hexo new ${page_name}

Deploy

$ vagrant ssh -c "cd /var/www/myblog/ && hexo clean && hexo deploy -g"

see: http://kasei-san.github.io/myblog/

Update submodule

$ git submodule foreach git pull origin master
$ git submodule update

Edit remote files

$ vagrant ssh-config >> ~/.ssh/config
$ scp://vagrant@hexo_server//var/www/myblog/source/_posts/20150307-upload-github-pages.md

About

hexo server on vagrant

Resources

Releases

No releases published

Packages

No packages published

Languages