From 457d3e2ac92ef80913e57657b08589bb946e9b23 Mon Sep 17 00:00:00 2001 From: Andrey Izman Date: Mon, 16 Nov 2015 23:21:38 +0200 Subject: [PATCH] Added ability to run server without a command `cd svc/shellac` --- README.md | 3 +-- svc/shellac/run | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f537691..3b5fb9c 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,7 @@ Requirements: To run the Shellac web app server, do this in a terminal: - cd svc/shellac - ./run + ./svc/shellac/run To install the Chrome extension: diff --git a/svc/shellac/run b/svc/shellac/run index 1ede85e..55d1d54 100755 --- a/svc/shellac/run +++ b/svc/shellac/run @@ -1,3 +1,6 @@ #!/bin/sh -cd ../.. + +filename=`realpath "$(type $0 | awk '{print $3}')"` +dirpath=`dirname ${filename}` +cd "$dirpath/../.." exec bin/webapp.py 8783