Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
jymchng opened this issue Dec 19, 2024 · 0 comments
Open
1 task done
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working

Comments

@jymchng
Copy link

jymchng commented Dec 19, 2024

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.
@jymchng jymchng added S-Triage Awaiting decision for what to do T-Bug Something isn't working labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant