Skip to content

Commit 8cd250b

Browse files
Create valid symbolic link to output dir (#226)
* Use workaround to ensure one ln command works on MacOS _and_ Linux Using `ln -s output ../client/public/js/output` works on MacOS, but not Linux. The equivalent on Linux would be to add a `--relative` flag, but this doesn't exist for MacOS. MacOS uses BSD `ln` whereas Linux uses GNU ln`. The `"$PWD" works around this limitation * Prevent the symbolic link from being committed accidentally
1 parent eaf51ec commit 8cd250b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ cabal.sandbox.config
1414
*.chs.h
1515
*.lksh*
1616
bundle/
17+
client/public/js/output

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ stack build
9898
cd staging
9999
spago build
100100

101-
# Ensure the compiled JavaScript is available to the client
102-
ln -s output ../client/public/js/output
101+
# Ensure the compiled JavaScript is available to the client via symbolic link.
102+
ln -s "$PWD/output" "$PWD/../client/public/js/output"
103103

104104
# Then, start the server.
105105
#

0 commit comments

Comments
 (0)