Always start python via shebang lines.

This is preparation for supporting using Python 3 in production.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2016-11-21 19:44:16 -05:00
committed by Tim Abbott
parent 2d6525df04
commit 207cf6302b
55 changed files with 111 additions and 107 deletions

View File

@@ -4,12 +4,12 @@ set -xe
# Change to root directory of the checkout that we're running from
cd "$(dirname "$0")/../.."
python manage.py checkconfig
./manage.py checkconfig
python manage.py migrate --noinput
python manage.py createcachetable third_party_api_results
./manage.py migrate --noinput
./manage.py createcachetable third_party_api_results
if ! python manage.py initialize_voyager_db; then
if ! ./manage.py initialize_voyager_db; then
set +x
echo
echo -e "\033[32mPopulating default database failed."