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

http-server runing on project root folder path without any reasons #862

Open
StephaneBonilla opened this issue Jul 20, 2023 · 2 comments
Open

Comments

@StephaneBonilla
Copy link

Environment Versions

  1. Windows 11
  2. Node version: v18.16.1
  3. http-server version: v14.1.1

Steps to reproduce

I have a project with a dist folder. When i open a terminal in that folder and run http-server, it use the project root folder instead of the folder where i opened the terminal.

Expected result

http-server root path should use the path of the folder i opened the terminal

Actual result

Http-server root path is using the project root path.

Other information

image

@StephaneBonilla StephaneBonilla changed the title http-server runing on root folder path without any reasons http-server runing on project root folder path without any reasons Jul 20, 2023
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Jan 16, 2024
@ruoyush
Copy link

ruoyush commented Jan 28, 2024

I encountered the same problem on linux. And the reason for me is the permission. After I added 777 permission recursively to the dist folder, It worked by running the http-server under the dist directory.

@github-actions github-actions bot removed the stale label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants