Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed silly -f documentation update

  • Loading branch information...
commit e84c4c2734d8799182571339619c8f27b9a17d39 1 parent fb5a2be
C. Titus Brown authored
Showing with 14 additions and 9 deletions.
  1. +6 −4 README.html
  2. +7 −4 README.txt
  3. +1 −1  pony_build/web/run.py
10 README.html
View
@@ -327,17 +327,19 @@ <h1 class="title">pony-build</h1>
<h1><a id="pony-build-server" name="pony-build-server">pony-build server</a></h1>
<p>The command:</p>
<pre class="literal-block">
-python -m pony_build.web.run &lt;shelve filename&gt; -p &lt;port&gt;
+python -m pony_build.web.run -f &lt;shelve filename&gt; -p &lt;port&gt;
</pre>
<p>will run the Quixote-based pony-build Web app on the given port,
-reading &amp; writing from the sqlite database in 'filename'.</p>
+reading &amp; writing from the sqlite database in 'filename'. If you omit
+the '-f' argument, it will use an in-memory database.</p>
<p>For example,</p>
<pre class="literal-block">
-python -m pony_build.web.run test.db -p 8080
+python -m pony_build.web.run -f test.db -p 8080
</pre>
<p>will run a server that can be accessed on <a class="reference" href="http://localhost:8080/">http://localhost:8080/</a>. This
server will report on whatever results are sent to it by the client (see
-below), based on the package name ('name', below).</p>
+below), based on the package name ('name', below). All data will be
+saved to 'test.db'.</p>
<p>See 'architecture, and extending pony-build', below.</p>
</div>
<div class="section">
11 README.txt
View
@@ -48,18 +48,21 @@ pony-build server
The command: ::
- python -m pony_build.web.run <shelve filename> -p <port>
+ python -m pony_build.web.run -f <shelve filename> -p <port>
will run the Quixote-based pony-build Web app on the given port,
-reading & writing from the sqlite database in 'filename'.
+reading & writing from the sqlite database in 'filename'. If you omit
+the '-f' argument, it will use an in-memory database.
+
For example, ::
- python -m pony_build.web.run test.db -p 8080
+ python -m pony_build.web.run -f test.db -p 8080
will run a server that can be accessed on http://localhost:8080/. This
server will report on whatever results are sent to it by the client (see
-below), based on the package name ('name', below).
+below), based on the package name ('name', below). All data will be
+saved to 'test.db'.
See 'architecture, and extending pony-build', below.
2  pony_build/web/run.py
View
@@ -27,7 +27,7 @@
(options, args) = parser.parse_args()
if args:
- print "pony-build Web server doesn't take any arguments??"
+ print "pony-build Web server doesn't take any arguments?? Maybe you meant to use '-f'"
sys.exit(-1)
push_server = None
Please sign in to comment.
Something went wrong with that request. Please try again.