Files changed (1)
- Ignore whitespace
devsrvr is a simple tool to ease local web development in the [Go](http://golang.org/) programming language.
Its main purpose in life is to sit in front of your webapp and automatically recompile it as needed when
+To use devsrvr, you need to adjust your app to accept a flag called `addr`, which it uses to configure the address it listens on. A simple example looks like:
- * __DevServerAddress__ is the address that devsrvr will listen on - this is the one to enter into our browser
- * __AppAddress__ is the address to connect to your app on - essentially anything different than DevServerAddress is probably fine. Make sure
- * __StartupTime__ is an optional field to specify how long to wait (in nanoseconds) before connecting to your app after rebuilding it
-* devsrvr also currently assumes your Makefile is at the root level of your app as well, though that should probably be configurable...
-Now, navigate to your app's root directory and invoke `devsrvr`. Enter the value you used for 'DevServerAddress' into your browser
+By default, devsrvr will listen on `localhost:8000`, and instruct your app to listen on `localhost:8888`.
+So, to see your app you'd run `devsrvr /path/to/my/app`, and visit `localhost:8000` in your browser.
+Each time you refresh the page, devsrvr will check whether your app needs to be rebuilt, and handle it if necessary. Any build errors are returned to you in the browser.
+By default, devsrvr waits one second for your app to start up before proxying the first request, in order to catch any errors that occur on startup.