Skip to content

Commit

Permalink
Update docs for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Hu committed Aug 15, 2012
1 parent 4fc612b commit 52e6e0f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zipkin-finatra/config/web-dev.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ new ZipkinWebConfig {

/**
* Making changes to js/css can be painful with a packaged jar since a compilation is needed to
* repackage any new changes. `resourcePathPrefix` can be hacked to point to the directory
* on your local file system so the browser resolves it outside of the jar. Example:
* repackage any new changes.
* A simple hack is to stand up a simple Python HTTP server and point `resourcePathPrefix` it.
* Example:
*
* `val resourcePathPrefix = "file:///Users/username/path/to/zipkin-finatra/src/main/resources/public"`
* `cd zipkin-finatra/src/main/resources/public && python -m SimpleHTTPServer`
*
* Then, set:
* `val resourcePathPrefix = "http://localhost:8000"`
*/
val resourcePathPrefix = "/public"
jsConfig = new JsConfig {
Expand Down

0 comments on commit 52e6e0f

Please sign in to comment.