Skip to content

kasei-san/hexo_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages