[GH-ISSUE #1661] Project not running on local machine. #524

Closed
opened 2026-03-16 15:50:37 +03:00 by kerem · 7 comments
Owner

Originally created by @rohit-raje-786 on GitHub (May 20, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1661

Even after installing all the dependencies and following all the procedure for the running the project on local environment the project is not running on my local machine. Attaching the image of the same below.
image
image

Originally created by @rohit-raje-786 on GitHub (May 20, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1661 Even after installing all the dependencies and following all the procedure for the running the project on local environment the project is not running on my local machine. Attaching the image of the same below. ![image](https://user-images.githubusercontent.com/61861303/118925242-03fd6500-b95c-11eb-8ff4-53f88dc159e0.png) ![image](https://user-images.githubusercontent.com/61861303/118925273-0eb7fa00-b95c-11eb-83c9-d575ad2a6fc2.png)
kerem closed this issue 2026-03-16 15:50:42 +03:00
Author
Owner

@liyasthomas commented on GitHub (May 20, 2021):

Are there any logs in the browser console?

I guess you missed the first step to set up environment variables for local development.

Rename .env.example to .env and restart your local development server. Also, feel free to replace environment variables if you'd like to use your own Firebase instance.

<!-- gh-comment-id:844741363 --> @liyasthomas commented on GitHub (May 20, 2021): Are there any logs in the browser console? I guess you missed the [first step](https://github.com/hoppscotch/hoppscotch#developing) to set up environment variables for local development. Rename `.env.example` to `.env` and restart your local development server. Also, feel free to replace environment variables if you'd like to use your own Firebase instance.
Author
Owner

@codati commented on GitHub (May 20, 2021):

Rename .env.example to .env and restart your local development server:

$ docker run -p 3000:3000 hoppscotch/hoppscotch:latest
$ docker exec -ti container_name sh
# mv .env.example .env
# exit
$ docker restart container_name

To get docker container name:

$ docker ps --format "{{.Names}}"

you can rename .env in docker image? for simplify usage

<!-- gh-comment-id:845214417 --> @codati commented on GitHub (May 20, 2021): Rename `.env.example` to `.env` and restart your local development server: ``` $ docker run -p 3000:3000 hoppscotch/hoppscotch:latest $ docker exec -ti container_name sh # mv .env.example .env # exit $ docker restart container_name ``` To get docker container name: ``` $ docker ps --format "{{.Names}}" ``` --- you can rename .env in docker image? for simplify usage
Author
Owner

@liyasthomas commented on GitHub (May 20, 2021):

I'm checking whether is it possible to pack a .env in the docker image. I'll update once I get a successful result.

<!-- gh-comment-id:845217959 --> @liyasthomas commented on GitHub (May 20, 2021): I'm checking whether is it possible to pack a `.env` in the docker image. I'll update once I get a successful result.
Author
Owner

@codati commented on GitHub (May 20, 2021):

thank you

<!-- gh-comment-id:845220047 --> @codati commented on GitHub (May 20, 2021): thank you
Author
Owner

@gandhisamay commented on GitHub (Feb 3, 2024):

@liyasthomas packing the .env in the docker image doesn't work for me as well, even though the right environment variable values are displayed in docker desktop, it still uses the values mentioned in the .env.example file only

<!-- gh-comment-id:1925275016 --> @gandhisamay commented on GitHub (Feb 3, 2024): @liyasthomas packing the .env in the docker image doesn't work for me as well, even though the right environment variable values are displayed in docker desktop, it still uses the values mentioned in the .env.example file only
Author
Owner

@liyasthomas commented on GitHub (Feb 3, 2024):

Can you make sure you did a complete docker restart? Bring all existing docker images associated with Hoppscotch and spin up again to reflect .env file contents.

<!-- gh-comment-id:1925275439 --> @liyasthomas commented on GitHub (Feb 3, 2024): Can you make sure you did a complete docker restart? Bring all existing docker images associated with Hoppscotch and spin up again to reflect `.env` file contents.
Author
Owner

@gandhisamay commented on GitHub (Feb 3, 2024):

yes, it doesn't work. I tried building my own image as well, still no luck

<!-- gh-comment-id:1925277282 --> @gandhisamay commented on GitHub (Feb 3, 2024): yes, it doesn't work. I tried building my own image as well, still no luck
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#524
No description provided.