Created
January 30, 2017 07:17
-
-
Save agocorona/7871a405cdbabe5202d9b1b36864b50a to your computer and use it in GitHub Desktop.
Sell script for the compilation with ghcjs and execution with runghc of transient programs with web nodes
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
| set -e | |
| port=`echo ${3} | awk -F/ '{print $(3)}'` | |
| docker run -it -p ${port}:${port} -v $(pwd):/work agocorona/transient:01-27-2017 bash -c "mkdir -p static && ghcjs --make /work/${1} -o static/out && runghc /work/${1} ${2} ${3}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment