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

Feature Request: Add the ability to serve a folder directly from the terminal #73

Closed
bjdash opened this issue Sep 3, 2018 · 3 comments
Labels

Comments

@bjdash
Copy link

bjdash commented Sep 3, 2018

It should have the ability to serve a folder directly from the terminal.

For example:
Lets say I installed fastify-static globally with -g flag, now I should be able to serve a folder with below commant
fastify-static . //serve current folder
fastify-static app/public/ -p 80 //serve the folder app/pblic on post 80

@mcollina
Copy link
Member

mcollina commented Sep 3, 2018

I would prefer not to, mainly because it would require adding fastify as a direct dependency, which will complicate the dependency graph when we release fastify@2. I think we should just write a little utility that does that.

As a side note, there are a lot of CLI tools that do that, why would you need it?

@nwoltman
Copy link
Contributor

nwoltman commented Sep 3, 2018

@bjdash An example of a CLI tool that already does this is the http-server package.

@stale
Copy link

stale bot commented Oct 21, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 21, 2020
@stale stale bot closed this as completed Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants