kalin m wrote:
>
> the changes take place only after killing and restarting the local
> application server.
> i thought that the changes are active immeditely. there is no mentioning
> about restarting the server application to view the changes. in the wiki
> video the fact that the changes are taking place immediately is
> underscored as a tg advantage.
>
> on the page: http://www.turbogears.org/2.0/docs/main/Wiki20/wiki20.html
> it shows the usage of paster command to start the application server
> with --reload development.ini
>
>
> on mine i get:
> $ paster serve --relaod development.ini
> Usage: /path/tg2env/bin/paster serve [options] CONFIG_FILE
> [start|stop|restart|status] [var=value]
> Serve the described application
>
> /path//tg2env/bin/paster serve: error: no such option: --relaod
>
> and paster -h doesn't include --reload either....
>
--reload (not --relaod!) is an option of the "serve" subcommand:
$ paster serve -h
Options:
-h, --help show this help message and exit
-v, --verbose
-q, --quiet
-n NAME, --app-name=NAME
Load the named application (default main)
-s SERVER_TYPE, --server=SERVER_TYPE
Use the named server.
--server-name=SECTION_NAME
Use the named server as defined in the configuration
file (default: main)
--daemon Run in daemon (background) mode
--pid-file=FILENAME Save PID to file (default to paster.pid if
running in
daemon mode)
--log-file=LOG_FILE Save output to the given log file (redirects stdout)
--reload Use auto-restart file monitor
--reload-interval=RELOAD_INTERVAL
Seconds between checking files (low number can cause
significant CPU usage)
--monitor-restart Auto-restart server if it dies
--status Show the status of the (presumably daemonized)
server
--user=USERNAME Set the user (usually only possible when run as
root)
--group=GROUP Set the group (usually only possible when run as
root)
--stop-daemon Stop a daemonized server (given a PID file, or
default
paster.pid file)
This should work:
$ paster serve --reload development.ini
(make sure you type it correctly ;)
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---