Skip to content

Instantly share code, notes, and snippets.

@hayajo
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayajo/9970231 to your computer and use it in GitHub Desktop.
Save hayajo/9970231 to your computer and use it in GitHub Desktop.
wkhtmltopdfのVagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision "shell", inline: <<-EOS
apt-get update
apt-get install -y stow libxrender-dev fontconfig otf-ipafont-gothic otf-ipafont-mincho
if [ ! `which wkhtmltox` ];then
mkdir -p /usr/local/stow
cd /usr/local/stow
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.0/wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
tar xJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
stow wkhtmltox
fi
EOS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment