diff options
| author | 2018-05-23 22:38:20 +0200 | |
|---|---|---|
| committer | 2018-05-23 22:38:20 +0200 | |
| commit | 309a6f93f878fc96951902fc47d45a30ef5f8d71 (patch) | |
| tree | f788b43a892a93d0f97da73f459a55b43e1ea1a0 /README.md | |
| parent | update readme (diff) | |
POC completed
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -43,20 +43,27 @@ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rmq # If not, change the snekbox/config.py file to match ``` +start the webserver + +```bash +docker run --name snekboxweb --network=host -d pythondiscord/snekboxweb:latest +netstat -plnt +# tcp 0.0.0.0:5000 LISTEN +``` + ## Test the code use two terminals! ```bash #terminal 1 -pipenv run python snekbox/consume.py +pipenv run python snekbox.py #terminal 2 -pipenv run python snekbox/publish.py +pipenv run python snekweb.py ``` -The publish will put a message on the message queue -and the consumer will pick it up and do stuff +`http://localhost:5000` ## Build and run the consumer in a container |