From 2c6a7e1418348c27be1ed08117db504edb069202 Mon Sep 17 00:00:00 2001 From: Niklas Poslovski Date: Wed, 17 Apr 2019 20:44:26 +0200 Subject: [PATCH] Fix installation instructions and config (#45) * Update installation instructions I tried to install a local copy of this project and experienced some problems with the installation instructions. I updated the instructions with the commands I needed to run to make it work. * Fix poussetaches docker config Port 7991 needs to be opened for the poussetaches container to work correctly. --- README.md | 6 +++--- docker-compose-dev.yml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1837b27..4ca2050 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ Activities are verified using HTTP Signatures or by fetching the content on the $ git clone https://github.com/tsileo/microblog.pub $ cd microblog.pub $ pip install -r requirements.txt -$ make css $ cp -r config/me.sample.yml config/me.yml ``` @@ -107,9 +106,10 @@ The most convenient way to hack on microblog.pub is to run the server locally, a # One-time setup $ pip install -r requirements.txt # Start MongoDB and poussetaches -$ docker-compose -f docker-compose-dev.yml up -d +$ make poussetaches +$ env POUSSETACHES_AUTH_KEY="SetAnyPasswordHere" docker-compose -f docker-compose-dev.yml up -d # Run the server locally -$ FLASK_DEBUG=1 MICROBLOGPUB_DEBUG=1 FLASK_APP=app.py flask run -p 5005 --with-threads +$ FLASK_DEBUG=1 MICROBLOGPUB_DEBUG=1 FLASK_APP=app.py POUSSETACHES_AUTH_KEY="SetAnyPasswordHere" flask run -p 5005 --with-threads ``` ## API diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index b41f6c1..4e653e5 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -12,3 +12,5 @@ services: - "${DATA_DIR}/poussetaches:/app/poussetaches_data" environment: - POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY} + ports: + - "7991:7991"