Skip to content

[Bug]: At runtime the App is unable to find ./.env.prod and other similarly named files. #1933

Open
@jymchng

Description

@jymchng

What happened?

>>> unzip -l deployment.tar
Archive:  deployment.tar
  Length      Date    Time    Name
---------  ---------- -----   ----
       32  2024-12-19 15:47   .env.example
       83  2024-12-19 15:47   .env.local
       83  2024-12-19 15:47   .env.prerelease
       83  2024-12-19 15:47   .env.prod
       83  2024-12-19 15:47   .env.savegist
       70  2024-12-19 15:47   .gitignore
      835  2024-12-19 15:47   .pre-commit-config.yaml
      713  2024-12-19 15:47   .pre-commit-hooks.yaml
       76  2024-12-19 15:47   .vscode/settings.json
    80406  2024-12-19 15:47   Cargo.lock
      747  2024-12-19 15:47   Cargo.toml
      529  2024-12-19 15:47   Dockerfile-prod
     5095  2024-12-19 15:47   Makefile
     4860  2024-12-19 15:47   README.md
      136  2024-12-19 15:47   Shuttle.toml
    33999  2024-12-19 15:47   deployment.tar
      246  2024-12-19 15:47   docker-compose-prod.yaml
       28  2024-12-19 15:47   rust-toolchain.toml
     5400  2024-12-19 15:47   shuttle-examples/jsonwebtoken-axum.rs
     9587  2024-12-19 15:47   src/lib.rs
     2468  2024-12-19 15:47   src/main.rs
     6608  2024-12-19 15:47   tests/auth_tests.rs
---------                     -------
   152167                     22 files

As seen in above output, these files:

32  2024-12-19 15:47   .env.example
83  2024-12-19 15:47   .env.local
83  2024-12-19 15:47   .env.prerelease
83  2024-12-19 15:47   .env.prod
83  2024-12-19 15:47   .env.savegist

are located at the root directory but at runtime, the App is unable to find them.

Version

v0.49.0

Which operating system(s) are you seeing the problem on?

Linux

Which CPU architectures are you seeing the problem on?

No response

Relevant log output

No response

Duplicate declaration

  • I have searched the issues and there are none like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-TriageAwaiting decision for what to do

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions