Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
doing some magic for making pandoc work on heroku
# bring up the vagrant VM
sudo apt-get install vagrant
git clone
cd vagrant-haskell-heroku
vagrant up
vagrant ssh
# run this in vagrant shell
cabal update
cabal install cabal-install
cabal --version
> cabal-install version 0.14.0
> using version 1.14.0 of the Cabal library
cabal install highlighting-kate
cabal install zip-archive
cabal install hsb2hs
cabal install texmath
cabal install hs-bibutils
cabal install citeproc-hs -fembed_data_files
export PATH=/home/vagrant/.cabal/bin:$PATH # in case hsb2hs isn't found in your current PATH
cabal install pandoc -fembed_data_files
/home/vagrant/.cabal/bin/pandoc --version
> pandoc 1.11.1
> Compiled with citeproc-hs 0.3.7, texmath, highlighting-kate
# create tarballs, added by @minrk
mkdir -p pandoc-dist/bin/
cp /home/vagrant/.cabal/bin/pandoc pandoc-dist/bin/
cd pandoc-dist
tar -czf pandoc.tar.gz bin/
# scp from vagrant to localhost
passwd vagrant # if you don't know the password, just change that fuck so you can copy the pandoc binary to your local machine
scp -P 2222 vagrant@localhost:/home/vagrant/pandoc-dist/pandoc.tar.gz .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment