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

How do I make Harp ignores serving some folders/files? #376

Closed
ajmalafif opened this issue Nov 2, 2014 · 5 comments
Closed

How do I make Harp ignores serving some folders/files? #376

ajmalafif opened this issue Nov 2, 2014 · 5 comments
Labels

Comments

@ajmalafif
Copy link

I have a project which subdirectories are bunch of Ghosts directories, but I can't seem to find a guide on how to make that works. Any pointers or help?

@ahmedelgabri
Copy link

@ajmalafif You just need to rename what you want to ignore to start with an underscore.

From the docs

3. Ignore those which start with underscore.
Any files or directories that begin with underscore will be ignored by the server. This is the recommended naming convention for layout and partial files. Harp will honour this rule for both files and directories.

@ajmalafif
Copy link
Author

@ahmedelgabri

Tried it but it doesn't work though. Hmm..

Will share my findings more here.

@sintaxi
Copy link
Owner

sintaxi commented Nov 4, 2014

@ajmalafif I'd be interested in knowing more details. Its possible that harp already does what you need and if not you may have a use case we want to support.

@ghost
Copy link

ghost commented Nov 12, 2014

I think maybe he's asking the question that I have..

Which is, is there anyway to have serve files the way they are?

Ex. Serving a bower_components folder but not having harp change anything inside the folder

@kennethormandy
Copy link
Collaborator

@wiiing We have an issue for that #275 and an open PR that needs someone to fix the breaking tests #312. If someone fixes that, we can probably merge it, but otherwise I’m hoping we’ll support ignoring module folders (node_modules, bower_components, etc.) when we add Browserify support.

My guess is the confusion here is around adding a Ghost site inside Harp instead of adding a flattened Harp site to Ghost or just going static with Harp for the entire thing.

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

4 participants