Rename the meilisearch-http binary into meilisearch

This commit is contained in:
Clément Renault 2019-11-26 11:17:30 +01:00
parent 7cc096e0a2
commit 00d1200704
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
3 changed files with 10 additions and 6 deletions

View File

@ -14,11 +14,11 @@ jobs:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
artifact_name: meilisearch-http artifact_name: meilisearch
asset_name: meilisearch-http-linux-amd64 asset_name: meilisearch-linux-amd64
- os: macos-latest - os: macos-latest
artifact_name: meilisearch-http artifact_name: meilisearch
asset_name: meilisearch-http-macos-amd64 asset_name: meilisearch-macos-amd64
steps: steps:
- uses: hecrj/setup-rust-action@master - uses: hecrj/setup-rust-action@master

View File

@ -23,7 +23,7 @@ RUN apk update --quiet
RUN apk add libressl RUN apk add libressl
RUN apk add build-base RUN apk add build-base
COPY --from=compiler /meilisearch/target/release/meilisearch-http . COPY --from=compiler /meilisearch/target/release/meilisearch .
ENV MEILI_HTTP_ADDR 0.0.0.0:8080 ENV MEILI_HTTP_ADDR 0.0.0.0:8080
CMD ./meilisearch-http CMD ./meilisearch

View File

@ -7,6 +7,10 @@ authors = [
] ]
edition = "2018" edition = "2018"
[[bin]]
name = "meilisearch"
path = "src/main.rs"
[dependencies] [dependencies]
bincode = "1.2.0" bincode = "1.2.0"
chrono = { version = "0.4.9", features = ["serde"] } chrono = { version = "0.4.9", features = ["serde"] }