Skip to content

Commit a289fff

Browse files
committed
Merge pull request #1275 from johnmcdonnell/archfix
Fix for archlinux web mode
2 parents 4c88c22 + a49a445 commit a289fff

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ui/webserver/launch-julia-webserver

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
cd $(dirname $0)
33
test -x ../sbin/lighttpd || { echo "Install lighttpd with \"make -C deps install-lighttpd\" " && exit 0; }
44

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+
518
echo "Connect to http://localhost:2000/ for the web REPL."
6-
../sbin/lighttpd -D -f ../etc/lighttpd.conf -m ../lib &
19+
../sbin/lighttpd -D -f ../etc/lighttpd.conf -m $MODULE_DIRECTORY &
720
./julia-release-webserver -p 2001

0 commit comments

Comments
 (0)