Sha256: 40419bae23c2782ca486a2a34225703842de7317a82e5fa75c63f7809af58a05

Contents?: true

Size: 823 Bytes

Versions: 4

Compression:

Stored size: 823 Bytes

Contents

#!/bin/bash -ex

OLD_PWD=$PWD

WD=${MASTER_WD:-"/tmp/sproutcore_master_$$"}
IP=${IP:-"127.0.0.1"}
PORT=${PORT:-"4020"}

echo "Running in $WD..."

/bin/mkdir -p ${WD} || /bin/true
cd ${WD}

git clone https://github.com/sproutcore/abbot.git
cat > Gemfile <<EOF
source "http://rubygems.org"
gem "sproutcore", :path => "./abbot/"
EOF
bundle install --binstubs
./bin/sc-init master
cd master
mkdir frameworks
cd frameworks
ln -s ${OLD_PWD} sproutcore
cd ..
if [ -z ${TRAVIS_JOB_ID} ]; then
    # not running under travis, stay in foreground until stopped
    ../bin/sc-server --host=${IP} --port=${PORT} --allow-from-ips=${ALLOW_IPS:-"*.*.*.*"}
else
    # running under travis, daemonize
    ( ../bin/sc-server --host=${IP} --port=${PORT} --allow-from-ips=${ALLOW_IPS:-"*.*.*.*"} & ) || /bin/true
fi
cd ${OLD_PWD}
#rm -rf ${WD}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/scripts/run_sc_server_master.sh
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/scripts/run_sc_server_master.sh
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/scripts/run_sc_server_master.sh
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/scripts/run_sc_server_master.sh