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.
This commit is contained in:
Niklas Poslovski 2019-04-17 20:44:26 +02:00 committed by Thomas Sileo
parent 669fec0c2b
commit 2c6a7e1418
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -12,3 +12,5 @@ services:
- "${DATA_DIR}/poussetaches:/app/poussetaches_data"
environment:
- POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY}
ports:
- "7991:7991"