From 5917f212bad948cb2da40460ca1cddb6fd7a04f2 Mon Sep 17 00:00:00 2001 From: Thomas Payet Date: Fri, 29 Nov 2019 18:02:32 +0100 Subject: [PATCH] Fix port in README & Dockerfile --- Dockerfile | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1461a91a..4dfef0cc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,5 +23,5 @@ RUN apk add libgcc COPY --from=compiler /meilisearch/target/release/meilisearch . -ENV MEILI_HTTP_ADDR 0.0.0.0:8080 +ENV MEILI_HTTP_ADDR 0.0.0.0:7700 CMD ./meilisearch diff --git a/README.md b/README.md index 3e071dc66..8025c1854 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You still need to create your front-end to make it pretty, though. ### Deploy the Server If you have not yet installed Rust and its package manager `cargo`, go to [the installation page](https://www.rust-lang.org/tools/install).
-You can deploy the server on your machine; it listens to HTTP requests on the 8080 port by default. +You can deploy the server on your machine; it listens to HTTP requests on the 7700 port by default. ```bash cargo run --release @@ -65,14 +65,14 @@ MeiliSearch can serve multiple indexes, with different kinds of documents, therefore, it is required to create the index before sending documents to it. ```bash -curl -i -X POST 'http://127.0.0.1:8080/indexes' --data '{ "name": "Movies", "uid": "movies" }' +curl -i -X POST 'http://127.0.0.1:7700/indexes' --data '{ "name": "Movies", "uid": "movies" }' ``` Now that the server knows about our brand new index, we can send it data. We provided you a small dataset that is available in the `datasets/` directory. ```bash -curl -i -X POST 'http://127.0.0.1:8080/indexes/movies/documents' \ +curl -i -X POST 'http://127.0.0.1:7700/indexes/movies/documents' \ --header 'content-type: application/json' \ --data @datasets/movies/movies.json ``` @@ -83,7 +83,7 @@ The search engine is now aware of our documents and can serve those via our HTTP The [`jq` command-line tool](https://stedolan.github.io/jq/) can significantly help you read the server responses. ```bash -curl 'http://127.0.0.1:8080/indexes/movies/search?q=botman' +curl 'http://127.0.0.1:7700/indexes/movies/search?q=botman' ``` ```json