summaryrefslogtreecommitdiff
path: root/bin/start_server.sh
blob: 3569ec8e6e55bdb3dd062008d98c5fdd3f73b0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Arguments: Use --pid_file to specify a pid file location.
tox -e py26

function run() {
    .tox/py26/bin/python $@
}
run bin/reddwarf-manage \
    --config-file=etc/reddwarf/reddwarf.conf.test db_wipe \
    reddwarf_test.sqlite mysql fake
run bin/reddwarf-server \
    --fork --config-file=etc/reddwarf/reddwarf.conf.test \
    repo_path=reddwarf_test.sqlite $@