Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Jonathan Lundell
On Jun 10, 2012, at 11:42 PM, Anthony wrote: > What I am hearing is that even the 'reload routes' button is not safe > to use on a busy server. > > Yes, but it's a fairly general problem, not specific to the web2py rewrite > system. Let's say someone loads a page from your projectX2011 app and l

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
On Monday, June 11, 2012 12:42:47 AM UTC-4, Anthony wrote: > > What I am hearing is that even the 'reload routes' button is not safe >> to use on a busy server. > > > Yes, but it's a fairly general problem, not specific to the web2py rewrite > system. Let's say someone loads a page from your proj

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
> > What I am hearing is that even the 'reload routes' button is not safe > to use on a busy server. Yes, but it's a fairly general problem, not specific to the web2py rewrite system. Let's say someone loads a page from your projectX2011 app and leaves the page open for a while. While they ha

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Doug Philips
On Sun, Jun 10, 2012 at 2:26 PM, Anthony wrote: >> But I think if you have users in mid-session and you switch apps on them, >> it could present problems no matter how you try to solve it. > > That's true. Although using routes is probably the safer method (should be > no problems within a single

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
> > But I think if you have users in mid-session and you switch apps on them, > it could present problems no matter how you try to solve it. > That's true. Although using routes is probably the safer method (should be no problems within a single request), a single page typically involves multi

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread pbreit
I still don't really understand what you are trying to do so it's hard to make suggestions. I think there could be problems either way if you are effectively switching apps while users are using the site. I think what might be important to what you are doing is that web2py looks at the "applic

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
> > > No, admin (including reloading routes) can be made available on a > production > > server -- you just have to access it via HTTPS. This should be fine for > > production. > > That's one way to go, but I was following the example from > http://web2py.com/books/default/chapter/29/13 > T

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Doug Philips
On Sun, Jun 10, 2012 at 11:20 AM, Anthony wrote: > Aside from the built-in Rocket server (which is primarily intended for > development), web2py doesn't have any control over the server so can't > generally restart your server -- so you should be able to rely on the fact > that reloading routes wi

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
> > > Reloading routes does not restart the server -- it just re-reads the > routes > > file. > > OK... just checked the code for the stable release... but, unless the > docs say so, I can't really rely on that behaviour not changing... > Aside from the built-in Rocket server (which is prima

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Doug Philips
On Sun, Jun 10, 2012 at 10:38 AM, Anthony wrote: > Reloading routes does not restart the server -- it just re-reads the routes > file. OK... just checked the code for the stable release... but, unless the docs say so, I can't really rely on that behaviour not changing... >> Both of those option

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Anthony
> > From what I can tell of reading the URL rewrite description, to change > routing I have to either: > restart the server OR > get to the admin interface and use the reload routes button (which > for all I know, restarts the server behind my back). > Reloading routes does not rest

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-10 Thread Doug Philips
On Sat, Jun 9, 2012 at 11:50 PM, pbreit wrote: > Hmmm...I still don't totally understand what you are trying to do and what > your setup looks like. I have a series of applications: ProjectX2012, ProjectX2011, ProjectX2010, etc I want to provide a short-cut URL: ProjectX that resolve

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-09 Thread pbreit
Hmmm...I still don't totally understand what you are trying to do and what your setup looks like.

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-09 Thread Doug Philips
On Sat, Jun 9, 2012 at 12:01 AM, pbreit wrote: > Hard to say how URL rewriting would affect all this. Maybe I don't > understand what you are doing or trying to do. Isn't a matter of effecting this, it is a matter of presenting one application under several names, which, I thought, URL rewriting

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-08 Thread pbreit
Hard to say how URL rewriting would affect all this. Maybe I don't understand what you are doing or trying to do. The SQLite DB for each app is usually in the app's "databases" directory. Have you done something to make each app use the same SQLite DB? How are your sym links set up? If you do

Re: [web2py] Re: Symbolic links in the applications directory...

2012-06-08 Thread Doug Philips
On Fri, Jun 8, 2012 at 8:12 PM, pbreit wrote: > You can certainly symlink to an application. Having two applications access > the same database is a different story. In theory it should work fine (but I > would never do it). Thanks. I guess I don't understand how web2py can tell the difference. W