prod: passerelle 0.3.0.1 (south)

This commit is contained in:
Thomas NOËL 2014-10-20 13:53:59 +02:00
parent 0c23bb5937
commit a72d4e3680
5 changed files with 18 additions and 10 deletions

View File

@ -1,7 +0,0 @@
<services>
<service name="download_url">
<param name="host">repos.entrouvert.org</param>
<param name="protocol">http</param>
<param name="path">/passerelle.git/snapshot/passerelle-9863723.tar.gz</param>
</service>
</services>

View File

@ -45,6 +45,7 @@ INSTALLED_APPS = (
'passerelle.repost',
'solis',
'makorepost',
'south',
)
MEDIA_ROOT = '/var/lib/passerelle/media'

View File

@ -38,8 +38,22 @@ GUNICORN_OPTIONS="--bind 127.0.0.1:8484 --workers=3"
start() {
[ -x $DAEMON ] || exit 5
# CG14 HACK -- first launch after South installation : fake migrations
# (to be removed)
if test ! -f /etc/passerelle/migrate-fake-done; then
# install south tables
$SCRIPTNAME manage syncdb --noinput && \
$SCRIPTNAME manage migrate --fake --noinput && \
touch /etc/passerelle/migrate-fake-done
fi
if test ! -f /etc/passerelle/migrate-fake-done; then
echo "ERR: migrate --fake failed"
echo "ERR: /etc/passerelle/migrate-fake-done file"
exit 1
fi
# install new applications, if any
$SCRIPTNAME manage syncdb --noinput
$SCRIPTNAME manage syncdb --migrate --noinput
echo $"Starting $NAME: "
daemon $DAEMON --daemon \

View File

@ -2,7 +2,7 @@
%define tag 0.3.0
%define commit 9863723
# si possible, minor = nombre de commit depuis le tag (à la "git describe")
%define minor 0
%define minor 1
# si minor == 0
#%define version %{tag}
@ -19,7 +19,7 @@ Summary: Uniform access to multiple data sources and services.
Group: Development/Languages
License: AGPL
URL: https://dev.entrouvert.org/projects/passerelle
Source0: passerelle-%{commit}.tar.gz
Source0: passerelle-9863723_with-initial-base-migration.tar.gz
Source1: passerelle.init
Source2: local_settings.py
Source3: synchro-wcs-suivi.sh