diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 07098f3..613b462 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,3 +23,7 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + env: + MONGO_URI: ${{secrets.MONGO_URI}} + MONGO_DB_NAME: ${{secrets.MONGO_DB_NAME}} + API_KEY: ${{secrets.API_KEY}} diff --git a/Cargo.toml b/Cargo.toml index 18230d8..33d73e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-rocket-sample" -version = "1.1.0" +version = "1.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/Dockerfile b/Dockerfile index 3071390..7425dd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,6 @@ COPY --from=builder /usr/local/cargo/bin/rust-rocket-sample /usr/local/bin/rust- COPY --from=builder /app/.env .env COPY --from=builder /app/Rocket.toml Rocket.toml -# ENV ROCKET_ADDRESS=0.0.0.0 - -EXPOSE 8000 +EXPOSE 8080 CMD ["rust-rocket-sample"] \ No newline at end of file diff --git a/Rocket.toml b/Rocket.toml index 18ba30c..c32f6cf 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -2,19 +2,9 @@ # You should generate your own by "openssl rand -base64 32" secret_key = "Yuvzw+jJ4yzKHi/JwHFl1y4X6Tjn/WrskHOWrlvt/L0=" -[staging] -address = "0.0.0.0" -port = 8000 -keep_alive = 5 -read_timeout = 5 -write_timeout = 5 -log_level = "normal" -secret_key = "TDpuEwYtEz7xz/N+diE85A9kPkb0ZWQkvqTowxBepiI=" -limits = { forms = 32768 } - [release] address = "0.0.0.0" -port = 8000 +port = 8080 keep_alive = 5 read_timeout = 5 write_timeout = 5