| Revision 878:8b7d6c638736,
466 bytes
checked in by Radomir Dopieralski <sheep-devel@…>, 3 months ago
(diff) |
|
Make the hashbang in dev.py more virtualenv-friendly
|
|
|
| Line | |
|---|
| 1 | #! /usr/bin/env python |
|---|
| 2 | # -*- coding: utf-8 -*- |
|---|
| 3 | |
|---|
| 4 | """ |
|---|
| 5 | An auto-reloading standalone wiki server, useful for development. |
|---|
| 6 | """ |
|---|
| 7 | |
|---|
| 8 | import hatta |
|---|
| 9 | import werkzeug |
|---|
| 10 | |
|---|
| 11 | if __name__=="__main__": |
|---|
| 12 | config = hatta.WikiConfig() |
|---|
| 13 | config.parse_args() |
|---|
| 14 | # config.parse_files() |
|---|
| 15 | application = hatta.Wiki(config).application |
|---|
| 16 | host = config.get('interface', 'localhost') |
|---|
| 17 | port = int(config.get('port', 8080)) |
|---|
| 18 | werkzeug.run_simple(host, port, application, use_reloader=True) |
|---|
Note: See
TracBrowser
for help on using the repository browser.