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 · 4 comments
Open
Labels
sus Something here doesn't seem right. A minimal reproduction would help.

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
@henriquemattos
Copy link

henriquemattos commented Jun 26, 2024

Still happening for me on version 1.0.1, but I've found a hint in a README file that pointed me to avoid -o and just use the path directly.

The following works:

http-serve -p 9000 dist

@KernelDeimos KernelDeimos added the sus Something here doesn't seem right. A minimal reproduction would help. label Sep 20, 2024
@KernelDeimos
Copy link
Contributor

Marking this as sus - I'm not able to reproduce this behavior so a minimal reproduction would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sus Something here doesn't seem right. A minimal reproduction would help.
Projects
None yet
Development

No branches or pull requests

4 participants