Created
November 30, 2011 23:47
-
-
Save tjdett/1411984 to your computer and use it in GitHub Desktop.
Scripts to checkout MyTardis and contrib apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MyTardis read-only (CoreTardis branch) | |
git clone git://github.com/mytardis/mytardis.git -b coretardis mytardis | |
# Checkout plugins | |
mkdir apps | |
git clone git://github.com/mytardis/hpctardis.git -b coretardis apps/hpctardis | |
git clone git://github.com/mytardis/microtardis.git -b coretardis apps/microtardis | |
# Checkout site theme (which you'll probably want to replace) | |
git clone git://github.com/UQ-CMM-Mirage/mytardis-theme-blank.git apps/blanktheme | |
# Checkout your settings repo (which you should NEVER push to a public server) | |
git clone git://gist.github.com/1411984.git settings | |
# (Add anything more you want to check out here | |
# Symlink everything into place | |
APPS=`find apps -maxdepth 1 -mindepth 1 -type d` | |
for i in $APPS | |
do | |
if [ ! -e mytardis/tardis/${i} ]; then | |
ln -s ../../../${i} mytardis/tardis/${i} | |
fi | |
done | |
ln -s ../../settings/settings.py mytardis/tardis/settings.py | |
# After this you'll want to: | |
# cd mytardis | |
# ./bin/django syncdb --settings=tardis.settings && ./bin/django migrate --settings=tardis.settings | |
# ./bin/django runserver --settings=tardis.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tardis.settings_changeme import * | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
# Dictionary containing the settings for all databases to be used. | |
# The DATABASES setting must configure a default database; | |
# any number of additional databases may also be specified. | |
DATABASES = { | |
'default': { | |
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | |
'ENGINE': 'django.db.backends.sqlite3', | |
# Name of the database to use. For SQLite, it's the full path. | |
'NAME': '/tmp/tardis.sql', | |
'USER': 'postgres', | |
'PASSWORD': '', | |
'HOST': '', | |
'PORT': '', | |
} | |
} | |
INSTALLED_APPS = ( | |
TARDIS_APP_ROOT+'.blanktheme', | |
TARDIS_APP_ROOT+'.microtardis', | |
TARDIS_APP_ROOT+'.hpctardis', | |
) + INSTALLED_APPS | |
SECRET_KEY = 'changemeunlessyouwanttobe0wn3d' | |
DEFAULT_INSTITUTION = "The University of Freedonia" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment