Commit 619b0ab4 authored by Patrick's avatar Patrick

first release

parent d3551c2f
#!/bin/bash
if [ -z "$1" ]; then
echo "usage: $0 directory_of_the_new_virtualenv"
exit
fi
A_install_new_virtualenv $1
B_install_new_site $1 repanier
B_install_new_site $1 ptidej
B_install_new_site $1 apero
B_install_new_site $1 lelensois
B_install_new_site $1 lebio
B_install_new_site $1 claude
cd ~/$1
echo "#"
echo "# To be done manually :"
echo "# ---------------------"
echo "# Copy /mysite/* and subfolers to $1/mysite/mysite/*"
echo "# Copy /repanier/* and subfolders to $1/mysite/repanier/*"
echo cd ~/$1/mysite
echo python manage.py collectstatic --settings=mysite.repanier_settings
echo python manage.py syncdb --all --settings=mysite.repanier_settings
echo python manage.py schemamigration repanier --initial --settings=mysite.repanier_settings
echo python manage.py migrate --fake --settings=mysite.repanier_settings
echo "# Check if CMS is ok"
echo python manage.py cms check --settings=mysite.repanier_settings
echo "# Compile translation files"
echo "export DJANGO_SETTINGS_MODULE="
echo cd ~/$1/mysite/repanier
echo django-admin.py compilemessages
echo cd ~/$1/mysite/mysite
echo django-admin.py compilemessages
echo export DJANGO_SETTINGS_MODULE='mysite.repanier_settings'
echo "# Initialize the DB with test content"
echo "# Copy /mysite/createdb/createdb.py and *.csv into ~/$1/mysite/"
echo cd ~/$1/mysite/
echo python createdb.py
echo "#"
echo "# WHEN READY"
echo "# Restart the webserver"
echo sudo /etc/init.d/nginx restart
echo sudo /etc/init.d/uwsgi stop
echo rm -rf /var/tmp/django_cache/*
echo sudo /etc/init.d/uwsgi start
CKEDITOR.stylesSet.add( 'my_styles', [
// Block-level styles
// { name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } },
// { name: 'Red Title' , element: 'h3', styles: { 'color': 'Red' } },
// Inline styles
// { name: 'CSS Style', element: 'span', attributes: { 'class': 'my_style' } },
// { name: 'Marker: Yellow', element: 'span', styles: { 'background-color': 'Yellow' } }
{ name: 'Heading 1', element: 'h1' },
{ name: 'Heading 2', element: 'h2' },
{ name: 'Heading 3', element: 'h3' },
{ name: 'Heading 4', element: 'h4' },
{ name: 'Marker: Green', element: 'span', styles: { 'background-color': 'Lime' } },
// Block-level styles
{ name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } },
{ name: 'Red Title' , element: 'h3', styles: { 'color': 'Red' } },
// Inline styles
{ name: 'CSS Style', element: 'span', attributes: { 'class': 'my_style' } }
]);
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