-
-
Save danielpuglisi/7912668 to your computer and use it in GitHub Desktop.
doing some magic for making pandoc work on heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bring up the vagrant VM | |
sudo apt-get install vagrant | |
git clone https://bitbucket.org/puffnfresh/vagrant-haskell-heroku.git | |
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 0.6.1.3, highlighting-kate 0.5.3.7. | |
# 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 | |
exit | |
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