28 lines
542 B
Bash
Executable File
28 lines
542 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# get real path of softlink
|
|
get_real_path() {
|
|
local f="$1"
|
|
while [ -h "$f" ]; do
|
|
ls=`ls -ld "$f"`
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
f="$link"
|
|
else
|
|
f=`dirname "$f"`/"$link"
|
|
fi
|
|
done
|
|
echo "$f"
|
|
}
|
|
|
|
prg_path=$(get_real_path "$0")
|
|
echo "Script Path [$prg_path]"
|
|
|
|
# Service Home
|
|
pushd $(dirname "$prg_path") > /dev/null
|
|
PROJECT_HOME=$(dirname $(pwd))
|
|
|
|
ember s -p 4200 -pr http://localhost:8180
|
|
|
|
popd > /dev/null
|