Mercurial > p > roundup > code
comparison roundup/demo.py @ 4988:c3a647a9f387
Fixes issue2550881 (demo.py: Add pointer how to access demo from remote host.)
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Sat, 23 May 2015 22:50:08 +0200 |
| parents | edd6cac141c1 |
| children | 9bb20454f409 |
comparison
equal
deleted
inserted
replaced
| 4987:f47341cbe3c8 | 4988:c3a647a9f387 |
|---|---|
| 127 1. Log in as "demo"/"demo" or "admin"/"admin". | 127 1. Log in as "demo"/"demo" or "admin"/"admin". |
| 128 2. Hit Control-C to stop the server. | 128 2. Hit Control-C to stop the server. |
| 129 3. Re-start the server by running "%(script)s" again. | 129 3. Re-start the server by running "%(script)s" again. |
| 130 4. Reset the tracker by running "%(script)s nuke". | 130 4. Reset the tracker by running "%(script)s nuke". |
| 131 | 131 |
| 132 Demo tracker is set up to be accessed from localhost. If run it on a | 132 By default the demo tracker is set up to be accessed from "localhost". |
| 133 server, please edit "%(datadir)s/config.ini" and set the | 133 If you want to run it on a server, |
| 134 "web" option in section "[tracker]" to your host name, then restart | 134 edit "%(datadir)s/config.ini" |
| 135 demo. If you want to change backend types, you must use "nuke". | 135 and set the "web" option in section "[tracker]" to your host name, |
| 136 then restart demo. If you want to change backend types, you must use "nuke". | |
| 136 | 137 |
| 137 ''' % dict(url=url, script=sys.argv[0], datadir=TRACKER_HOME) | 138 ''' % dict(url=url, script=sys.argv[0], datadir=TRACKER_HOME) |
| 138 | 139 |
| 139 # disable command line processing in roundup_server | 140 # disable command line processing in roundup_server |
| 140 sys.argv = sys.argv[:1] + ['-p', str(port), '-n', hostname, 'demo=' + home] | 141 sys.argv = sys.argv[:1] + ['-p', str(port), '-n', hostname, 'demo=' + home] |
| 148 print """ | 149 print """ |
| 149 Run a demo server. Config and database files are created | 150 Run a demo server. Config and database files are created |
| 150 in %(datadir)s/ subdirectory of %(script)s dir. | 151 in %(datadir)s/ subdirectory of %(script)s dir. |
| 151 | 152 |
| 152 'nuke' will re-initialize the demo instance, deleting the old data. | 153 'nuke' will re-initialize the demo instance, deleting the old data. |
| 154 | |
| 155 See docs/installation "For The Really Impatient" for more details. | |
| 153 | 156 |
| 154 Options: | 157 Options: |
| 155 -h -- print this help message | 158 -h -- print this help message |
| 156 -t template -- specify the tracker template to use | 159 -t template -- specify the tracker template to use |
| 157 -b backend -- specify the database backend to use | 160 -b backend -- specify the database backend to use |
