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.feifarek@???>:
> 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 | http://blog.ianbicking.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at
http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---