Skip to content
hexo server on vagrant
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cookbooks
myblog @ 960d23f
spec
.gitignore
.gitmodules
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
Vagrantfile

README.md

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
You can’t perform that action at this time.