solidusjs / solidus

A simple server that generates pages from JSON and Templates
MIT License
28 stars 7 forks source link

Configurable server root #111

Open pushred opened 10 years ago

pushred commented 10 years ago

I'm working on a project that involves overwriting the contents of view dynamically with a Grunt task. In order to start a dev server I need to start a Solidus server in a temporary sub-directory. However, the current path is set to the root because that is where my Grunt tasks are run. I'd rather not have to copy all of those files as well. I have one workaround presently that involves using a plugin to start a server via the CLI, but this seems to block any further tasks registered, interfering with file watchers, etc.

It'd be great if I could simply configure an alternate root for the server.