Can't run paster setup-app when using a filter

252 views
Skip to first unread message

Matt Feifarek

unread,
Mar 30, 2009, 7:57:36 PM3/30/09
to Paste Users
When I try:
paster setup-app deploy.ini

I get this error:
The section 'main' is not the application (probably a filter).  You should add #section_name, where section_name is the section that configures your application

I'm trying to park a Pylons app behind a prefix, so mydomain.org/someapp/* forwards to the paste/pylons app.

I don't really understand the error message; what should I add "#section_name" to, and what is "section_name" if not "main"?

I've got PasteScript 1.7.3 running on unix, running in a pretty clean virtualenv.

Below are the relevant bits in my ini file.

Thanks!

-----------------------------------

[DEFAULT]
debug = false

[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5005

[app:main]
use = egg:pm
full_stack = true
static_files = true
filter-with = proxy-prefix

[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /pipemonster

Ian Bicking

unread,
Apr 1, 2009, 11:58:32 AM4/1/09
to Matt Feifarek, Paste Users
You have to refer to an [app:*] section with setup-app. So if you
have something like:

[filter-app:main]
use = something
next = myapp

[app:myapp]
blah

Then you have to do paster setup-app deploy.ini#myapp

I think there's a specific bug with filter-with, which you might also
be encountering. I think [pipeline:*] tends to be more reliable, and
ultimately easier to read.

2009/3/30 Matt Feifarek <matt.f...@gmail.com>:
--
Ian Bicking | http://blog.ianbicking.org
Reply all
Reply to author
Forward
0 new messages