Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (23 sloc) 0.627 kB
#!/bin/bash
# Run in virtualenv
test -r env/bin/activate && . env/bin/activate
PORT=$1
fail () {
echo $@
exit 1
}
test -r sikteeri/local_settings.py || fail "sikteeri/local_settings.py not found"
export PYTHONPATH=`pwd`
# Build translations
./build.sh
cd sikteeri
if [ -r sikteeri_test.sqlite ]; then
./manage.py syncdb || fail "Updating database failed"
else
./manage.py syncdb || fail "Creating database failed"
./manage.py loaddata membership_fees.json || fail "Loading test data failed"
fi
if [[ -z $PORT ]]; then
PORT=12765
fi
./manage.py runserver $PORT || fail "Starting server failed"
Jump to Line
Something went wrong with that request. Please try again.