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

Add support for a configuration file (.httpserverrc?) #67

Closed
lukaszfiszer opened this issue Feb 25, 2014 · 2 comments
Closed

Add support for a configuration file (.httpserverrc?) #67

lukaszfiszer opened this issue Feb 25, 2014 · 2 comments

Comments

@lukaszfiszer
Copy link

I use http-server to develop multiple projects on my local machine. I want each project to be launched from a different port - so that I can use Chrome DevTools' Workspaces for editing with no problems (DevTools does "per hostname" binding between remote files and local files).

Currently http-server does not allow to load configuration options from a file so I need to manually provide and remember each port for each of my projects.

My proposition is to have a .httpserverrc file (like .bowerrc or .jshintrc) which will allow to store the configuration in a JSON format.

Related issue: #24

@jonathanrdelgado
Copy link

Why not just make a bash script to load the options through the flags?

@lukaszfiszer
Copy link
Author

Good point, thanks! I don't know how is it possible that I haven't thought about this!

The only potential problem I see with this solution is that bash scripts are not cross-platform. But if you care about it, you could just use something like grunt to start your dev server.

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