]> git.parisson.com Git - mezzo.git/commitdiff
update dev config and setup
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 3 Mar 2016 11:02:37 +0000 (12:02 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 3 Mar 2016 11:02:37 +0000 (12:02 +0100)
README.rst
app/deploy/start_app.sh
conf/dev.yml
docker-compose.yml

index 6a8fe2bd6b97c07b41c689847cf94dc64b5dcd43..ee49416a07eae3333907de4817cb70e0c54c9647 100644 (file)
@@ -6,7 +6,7 @@ This is the new template for the Manifeste festival website at IRCAM. It is base
 
 
 Install
-=========
+=======
 
 For easier development and production workflow, it has been dockerized including Django, Mezzanine, MariaDB and Nginx.
 
@@ -20,20 +20,44 @@ Then run these commands::
     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
 ==================
index f13f27afbef72b0100ffeb636ab4127cfbe7ae93..664d9bfeeff33fd85861c200f5f8501739234b2a 100644 (file)
@@ -38,7 +38,7 @@ python $manage create-admin-user
 # 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 \
index a4d25c57d31e20082d26f9f03fe399d21e25ced4..72e814b5eeb37cfddece0696bb5e8466875e93b3 100644 (file)
@@ -21,3 +21,5 @@
 
 app:
   command: /bin/sh deploy/start_app.sh --runserver
+  ports:
+    - "9010:8000"
index e8f28dbbd7a898143a3aa942fd3e6552bd2a780e..c573b8c1702608ba3c148c86c41ffe7bade4bb77 100644 (file)
@@ -52,8 +52,6 @@ db:
 app:
   build: .
   command: /bin/sh deploy/start_app.sh
-  ports:
-    - "9010:9010"
   volumes:
     - ./app/:/srv/app
   volumes_from: