Thanks all for help, I'll try your solutions and also check how paster serve
works.

@Lance Edgar: I see you have no setting of enviroment variable
PYTHON_EGG_CACHE in your WSGI script, how do you deal with it?

I had to add it in apache conf files with SetEnv and also export it in
/etc/profile to get rid of permission problems coming up here and there: I
have a daemon that monitors various ftp servers and I wish I can start it
from pylons app or from terminal.
I thought I could remove at least form wsgi script getting it from apache
but no way.

Not a problem tho (now) just had a lot of fails before finding a failsafe
way.

@Mike Orr:

> I just treat this as one step I have to do after creating an application

My point is not I have to delete index.html after project creation but
*every time* I create an egg of a new version of an existing app i.e.
there's a index.html in it even if I don't have one in my public folder
since weeks.

It's quite funny and not a hassle anyway: after initial deployment I came up
with 3/4 bugfixing versions a day, every time forgetting to delete index and
every time having my colleagues saying "hey I can't login there's this page
instead" :)

Of course I forgot many other more important things...

Thanks for your support
neurino



2011/3/4 Mike Orr <[email protected]>

> On Thu, Mar 3, 2011 at 6:59 AM, neurino <[email protected]> wrote:
> > Hi all,
> >
> > I deployed my Pylons app using Apache and mod_wsgi like explained in
> > pylons-book.
> >
> > Every time I easy_install a new version I find again and again default
> > public/index.html "Welcome to pylons" page opening / even if I removed
> > the file from source (who's going to put it back in place in `python
> > setup.py bdist_egg`???).
> >
> > The right route to controller action is in routing but it's ignored
> > until I don't remove index.html and I have to do this e-v-e-r-y time I
> > install a new version.
>
> It may have been a bad decision but it does demonstrate how static
> files work. Pyramid has an index view instead of index.html, so that
> problem doesn't come up. Pylons 1 is in maintenance mode now, so only
> genuine bugs are being fixed.
>
> I just treat this as one step I have to do after creating an
> application: clear out the 'public' directory. I have to do other
> steps anyway, like renaming the top-level directory before I check it
> into version control (because I want the project name different from
> the package name), so it has never seemed like an onerous step. In any
> case, I don't create new apps that often; usually I'm refining an
> existing app.
>
> --
> Mike Orr <[email protected]>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" 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/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to