finit l'initialisation du compte logement
This commit is contained in:
parent
9acd5efd87
commit
4b0bc86ca5
|
@ -16,8 +16,10 @@ if ! rpm -qa | grep rpmforge-release >/dev/null; then
|
|||
rm rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
|
||||
fi
|
||||
|
||||
yum erase postgres-libs httpd
|
||||
yum install postgresql84 postgresql84-server postgis memcached python26-imaging \
|
||||
python26-ldap python26-numpy geos-3.1.0 postgis proj gdal proj-devel
|
||||
python26-ldap python26-numpy geos-3.1.0 postgis proj gdal proj-devel nginx
|
||||
|
||||
if [ ! -d /var/lib/pgsql/data/ ]; then
|
||||
service postgresql initdb
|
||||
fi
|
||||
|
@ -42,6 +44,21 @@ cp -R `pwd` /home/logement/src/
|
|||
chown -R logement.logement /home/logement/src/
|
||||
cd /home/logement
|
||||
virtualenv-2.6 virtualenv
|
||||
. ../virtualenv/bin/activate
|
||||
. ./virtualenv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements
|
||||
pip install -r src/requirements
|
||||
cd src
|
||||
if ! -f local_settings_dev.py; then
|
||||
echo 'STATIC_ROOT = "/home/logement/static/"' >>local_settings_dev.py
|
||||
echo 'SECRET_KEY = "'`openssl rand -base64 40`'"' >>local_settings_dev.py
|
||||
fi
|
||||
|
||||
# Install nginx configuration
|
||||
ln -f `pwd`/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Create static
|
||||
cd appli_project
|
||||
python manage.py collectstatic -l --noinput
|
||||
|
||||
# Reload nginx
|
||||
service nginx reload
|
||||
|
|
Reference in New Issue