Skip to content

Commit

Permalink
Updated README to clarify how to run apps from the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvoss committed May 28, 2011
1 parent b6787fb commit 1ec8e89
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -29,11 +29,19 @@ Here's a basic "Hello, World" app:
"Hello, World!"
}

If you save the above code in `hello.groovy` and run it on the command line, it will start your app in Jetty on port 5000.
If you save the above code in `hello.groovy` and run it on the command line, it will start your app in Jetty on port 5000:

$ ./ratpack hello.groovy
Starting Ratpack app with config:
[port:5000]
2011-05-28 07:44:51.408:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2011-05-28 07:44:51.573:INFO::jetty-6.1.24
2011-05-28 07:44:52.169:INFO::Started SocketConnector@0.0.0.0:5000
...

You can also use the 'runapp.groovy' script to auto restart your app when there are changes in the directory.

groovy scripts/runapp.groovy appdir/hello.groovy appdir
$ groovy scripts/runapp.groovy appdir/hello.groovy appdir

POST and Other Verbs
--------------------
Expand Down

0 comments on commit 1ec8e89

Please sign in to comment.