Last active
August 29, 2015 14:07
-
-
Save lattejed/00d4ac51dd93d904a998 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Install the Haskell platform | |
cd / | |
wget https://www.haskell.org/platform/download/2014.2.0.0/haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz | |
tar xvf haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz | |
/usr/local/haskell/ghc-7.8.3-x86-64/bin/activate-hs | |
# Fix issues that will prevent GHC from running on 14.04 | |
apt-get update | |
apt-get install gcc zlib-devel | |
ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 /usr/lib/x86_64-linux-gnu/libgmp.so | |
# Now, update your ~/.cabal/config with the same Stackage URL as you used locally | |
cabal update | |
cabal install alex happy yesod-bin | |
# Copy your local app directory to this machine | |
# You can use scp -r my-yesod-app [email protected]:/root/ from your local machine | |
cd my-yesod-app && cabal install --enable-tests --reorder-goals --max-backjumps=-1 -j | |
# Finally, create your Keter bundle | |
yesod keter | |
# You should now have a Keter bundle at ~/my-yesod-app/my-yesod-app.keter | |
# Copy that to your local machine | |
# scp [email protected]:/root/my-yesod-app/my-yesod-app.keter ~ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment