Commit 7cc89d4d by Bruno Bzeznik

Update of phylodump

parent 2ce3dbd6
......@@ -38,12 +38,13 @@ Usage:
cp phylodb-container.nix /etc/nixos/
```
* Clone phylodb and phylodump (for example into `~/git/phylodb` and `~/git/phylodump`)
* Check that you don't have any local http server running on your host (or it will conflict with the phylodev one)
* Launch the initialization script that will start the container and finalize the phylodb installation:
```
sudo ./init-phylodb-container.sh ~/git/phylodb
sudo ./init-phylodb-container.sh ~/git/phylodb ~/git/phylodump
```
* Connect your browser to http://data.phylodev.org (the default login is "admin" and the password is "phylodev").
......
......@@ -42,11 +42,12 @@ then
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'gridmaster@univ-grenoble-alpes.fr', 'phylodev')" | python3 manage.py shell
# Load data
if [ -f $PHYLODUMP_DIR/phylodb_dump.json ]
if [ -f $PHYLODUMP_DIR/editor_db.json ]
then
## Loading from a dump
echo "Dump found, loading it..."
python3 manage.py loaddata $PHYLODUMP_DIR/phylodb_dump.json
python3 manage.py loaddata $PHYLODUMP_DIR/editor_db.json
python3 manage.py loaddata --database=browser_db $PHYLODUMP_DIR/browser_db.json
else
## Direct loading
# Load sample data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment