We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c88c22 + a49a445 commit a289fffCopy full SHA for a289fff
ui/webserver/launch-julia-webserver
@@ -2,6 +2,19 @@
2
cd $(dirname $0)
3
test -x ../sbin/lighttpd || { echo "Install lighttpd with \"make -C deps install-lighttpd\" " && exit 0; }
4
5
+
6
+for CANDIDATE in "../lib/lighttpd" "../lib"
7
+do
8
+ if [ -d "$CANDIDATE" ]; then
9
+ MODULE_DIRECTORY="$CANDIDATE"
10
+ break
11
+ fi
12
+done
13
14
+if [ -z $MODULE_DIRECTORY ]; then
15
+ echo "Could not find module directory."; exit 0
16
+fi
17
18
echo "Connect to http://localhost:2000/ for the web REPL."
-../sbin/lighttpd -D -f ../etc/lighttpd.conf -m ../lib &
19
+../sbin/lighttpd -D -f ../etc/lighttpd.conf -m $MODULE_DIRECTORY &
20
./julia-release-webserver -p 2001
0 commit comments