?TurboGears requires autoreload.package to be set

88 views
Skip to first unread message

Andy

unread,
Mar 27, 2008, 11:43:02 AM3/27/08
to TurboGears
I'm trying to start TG on my production server but it aborts with this
message:

"TurboGears requires autoreload.package to be set. It can be an empty
value, which will use CherryPy's default behavior which is to check
every module. Setting an actual package makes the check much faster."

I am using my start script followed by -c config/prod.cfg.

prod.cfg *does* have the autoreload.package set. I've tried it with
the autoreload turned on, as well. So I can't think of what else to
try....

Anybody know something about this issue?

Thanks

Christopher Arndt

unread,
Mar 27, 2008, 12:06:07 PM3/27/08
to turbo...@googlegroups.com
Andy schrieb:

Code, please. Paste your prod.cfg and post the URL. Also give us some
more info about your TG project (name, package name, etc).

Chris

Andy

unread,
Mar 27, 2008, 12:32:02 PM3/27/08
to TurboGears
> Code, please. Paste your prod.cfg and post the URL. Also give us some
> more info about your TG project (name, package name, etc)

name = pit1, package name = pit1

(tgenv)andr...@bananabread.net [~/tgenv/lib/python2.4/site-packages/
pit1-1.0-py2.4.egg]# cat config/prod.cfg
[global]

# pit1/config/app.cfg

# DATABASE

sqlobject.dburi="mysql://andrewbn_tgapp:XXXXPASSXXX@localhost:3306/
andrewbn_PitMusician"

# Auto-Reload after code modification
#autoreload.on = True
# SERVER

server.environment="production"
autoreload.package="pit1"

# Sets the number of threads the server uses
# server.thread_pool = 1

# if this is part of a larger site, you can set the path
# to the TurboGears instance here
# server.webpath=""


# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in pit1/config/log.cfg
[logging]

[[handlers]]

[[[access_out]]]
# set the filename as the first argument below
args="('server.log',)"
class='FileHandler'
level='INFO'
formatter='message_only'

[[loggers]]
[[[pit1]]]
level='ERROR'
qualname='pit1'
handlers=['error_out']

[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0

Christopher Arndt

unread,
Mar 27, 2008, 12:36:58 PM3/27/08
to turbo...@googlegroups.com
Andy schrieb:

> I'm trying to start TG on my production server but it aborts with this
> message:
>
> "TurboGears requires autoreload.package to be set. It can be an empty
> value, which will use CherryPy's default behavior which is to check
> every module. Setting an actual package makes the check much faster."
>
> I am using my start script followed by -c config/prod.cfg.

The syntax is: start-yourproject.py <configfile>

No "-c" here.

> prod.cfg *does* have the autoreload.package set. I've tried it with
> the autoreload turned on, as well. So I can't think of what else to
> try....

You don't need autoreload.package when server.environment="production"
is set.

Chris

Andy

unread,
Mar 27, 2008, 1:07:22 PM3/27/08
to TurboGears

> The syntax is: start-yourproject.py <configfile>
>
> No "-c" here.

oh. That solved it. I was still using the -c from the tg-admin sql
create command.

> You don't need autoreload.package when server.environment="production" is set.

That's why the message seemed weird.
Reply all
Reply to author
Forward
0 new messages