Install
-=========
+=======
For easier development and production workflow, it has been dockerized including Django, Mezzanine, MariaDB and Nginx.
cd Manifeste
docker-compose up db
-The last command is needed to init the database. Press CTRL-C to exit, then fire up the whole composition::
+Press CTRL-C to exit (the last command is needed to init the database).
+
+
+Start
+=====
+
+For a production environment setup::
docker-compose up
-Restore the backuped database, in another terminal (or a Docker Quickstart Terminal)::
+Then browse the app at http://localhost:8010/ (replacing 'localhost' by the IP given by the docker terminal on OSX and Windows)
+
+For a development environment setup::
+
+ docker-compose -f docker-compose.yml -f conf/dev.yml up
+
+Then browse the app at http://localhost:9010/ (replacing 'localhost' by the IP given by the docker terminal on OSX and Windows)
+
+
+Backup / Restore
+================
+
+To backup the database, in another terminal (or a Docker Quickstart Terminal)::
+
+ cd Manifeste
+ scripts/restore.sh
+
+giving your user password if asked...
+
+To restore the backuped database, in another terminal (or a Docker Quickstart Terminal)::
cd Manifeste
scripts/restore.sh
-Give you user password if asked.
-You should be able to browse the app at http://localhost:8010/ (replacing 'localhost' by the IP given by the docker terminal on OSX and Windows)
+If app is broken after a restore script, restart the machine with::
+
+ docker-compose restart
-If app is broken after a restore script :
-`docker-compose restart` to restart the machine.
Work with gulp
==================
# app start
if [ $1 = "--runserver" ]
then
- python $manage runserver 0.0.0.0:9010
+ python $manage runserver 0.0.0.0:8000
else
# static files auto update
watchmedo shell-command --patterns="$patterns" --recursive \