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

Derive config from nested directory structure #1

Closed
mjackson opened this issue Nov 15, 2016 · 0 comments
Closed

Derive config from nested directory structure #1

mjackson opened this issue Nov 15, 2016 · 0 comments

Comments

@mjackson
Copy link
Owner

mjackson commented Nov 15, 2016

Remember when you used to just dump a bunch of PHP files into a directory and Apache would automatically know what to do?

It would be cool to have a directory structure like:

- apps
  - one
    - index.html
  - two
    - index.html
    - three
      -index.html

and then to be able to say history-server apps and it would automatically derive the following config:

[
  { path: '/one', root: '/apps/one' },
  { path: '/two/three', root: '/apps/two/three' },
  { path: '/two', root: '/apps/two' }
]

Then you could just dump a whole bunch of apps in the directory structure you like and not worry about having to recreate the config every time you add a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant