[GH-ISSUE #3304] [bug]: .env location issue #1093

Closed
opened 2026-03-16 18:32:37 +03:00 by kerem · 1 comment
Owner

Originally created by @OliverW87 on GitHub (Aug 30, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3304

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

It looks like for container hoppscotch-backend the .env file must also located in packages/hoppscotch-backend
I can't build containers cause missing env variables.
Just when copy .env file from git-root to packages/hoppscotch-backend it works.
Also pnpm exec prisma migrate deploy will fail when .env is missing in packages/hoppscotch-backend.

Steps to reproduce

  1. As described in Installation Steps i've create an .env file in root directory of repo.
  2. Run pnpm install => works
  3. When running
cd packages/hoppscotch-backend
pnpm exec prisma migrate deploy

i got a error for missing .env file

  1. also when running docker compose build i got this error message Error: mailer/smtp_url_undefined
  2. for both cases i copied .env to packages/hoppscotch-backend and now it works

Environment

Production

Version

Self-hosted

Originally created by @OliverW87 on GitHub (Aug 30, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3304 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior It looks like for container hoppscotch-backend the .env file must also located in packages/hoppscotch-backend I can't build containers cause missing env variables. Just when copy .env file from git-root to packages/hoppscotch-backend it works. Also ```pnpm exec prisma migrate deploy``` will fail when .env is missing in packages/hoppscotch-backend. ### Steps to reproduce 1. As described in Installation Steps i've create an .env file in root directory of repo. 2. Run ```pnpm install``` => works 3. When running ``` cd packages/hoppscotch-backend pnpm exec prisma migrate deploy ``` i got a error for missing .env file 3. also when running ```docker compose build``` i got this error message ```Error: mailer/smtp_url_undefined``` 4. for both cases i copied .env to packages/hoppscotch-backend and now it works ### Environment Production ### Version Self-hosted
kerem 2026-03-16 18:32:37 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Sep 6, 2023):

Hi @OliverW87 with the 2023.8.0 release, the installation steps have been revised. Please visit Hoppscotch Docs to learn about the new steps.

If you still have problems with the new release, do feel free to reopen the issue.

<!-- gh-comment-id:1708731806 --> @AndrewBastin commented on GitHub (Sep 6, 2023): Hi @OliverW87 with the 2023.8.0 release, the installation steps have been revised. Please visit [Hoppscotch Docs](https://docs.hoppscotch.io) to learn about the new steps. If you still have problems with the new release, do feel free to reopen the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1093
No description provided.