Skip to content

Commit

Permalink
Created a shell script that loads the database #238
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Nov 19, 2012
1 parent 11c2b1a commit 600cebf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Build the base Go Botany database.

admin () {
django-admin.py "$@" --settings gobotany.settings
}

set -e
admin syncdb --noinput
admin migrate
python -m gobotany.core.importer zipimport
$(dirname "$0")/import-images.sh
$(dirname "$0")/import-dkey.sh
admin rebuild_index --noinput

0 comments on commit 600cebf

Please sign in to comment.