-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
29 lines (19 loc) · 868 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
DOWNLOAD_DIR=./src
# test for git and hg commands
for cmd in git hg; do
command -v ${cmd} >/dev/null || { echo "sh: command not found: ${cmd}"; exit 1; }
done
# download all packages to ./src (default)
pip install --no-install -r requirements.txt
cp -r ${DOWNLOAD_DIR}/django-autoload/autoload ./autoload
cp -r ${DOWNLOAD_DIR}/django-dbindexer/dbindexer ./dbindexer
cp -r ${DOWNLOAD_DIR}/django-nonrel/django ./django
cp -r ${DOWNLOAD_DIR}/djangoappengine/djangoappengine ./djangoappengine
cp -r ${DOWNLOAD_DIR}/djangotoolbox/djangotoolbox ./djangotoolbox
[ -f ${DOWNLOAD_DIR}/pip-delete-this-directory.txt ] && rm -rf ${DOWNLOAD_DIR}
echo "Now run:
./manage.py runserver
To launch this app. If you want access to django /admin, run also:
./manage.py createsuperuser
And then login in <your_app_ip>/admin, probably http://127.0.0.1:8000/admin"