huh... it seems like it is finding the image after all (Question 3)... weird
On Jan 2, 11:14 am, Matt Haggard <[EMAIL PROTECTED]> wrote: > I'm (in the process of) using pylons in a production environment and > still have a few questions: > > 1) Do I really have to restart the server every time I make a change > (controller/model)? I can foresee making many changes and some which > require immediate attention, but restarting the server in the middle > of the day would not be an option. So, do I have to make changes at > night? Is there no way for the server to adopt the changes without > killing all connections? > > 2) The system will be composed of multiple apps... (perhaps as many as > 20 or more) so would it be better (if I need to restart after every > change) to have all the apps served by their own servers? I mean, is > it better to have 20 instances of the paster server if uptime is such > a priority? > > 3) In serving several apps (thanks to Ian Bicking for the help to get > that going!) like this: > [composite:main] > use = egg:Paste#urlmap > / = config:home_app/development.ini > /app2 = config:app2/development.ini > ... > > how do I make app2 aware that all of his urls are based off of /app2? > well... actually, it is already aware of that. I'm really asking: Is > there a way for app2 to know that the home directory is just > plain / ? This comes up because I use a shared repository for images > and when I reference images from app2 with src="images/something.jpg" > it looks for the image at the > urlhttp://127.0.0.1:5000/app2/images/something.jpg > instead ofhttp://127.0.0.1:5000/images/something.jpg. Also, I'd like > for app2 to be able to link back to / without explicitly hard-coding > that url (I can see in the future bumping everything up a directory... > making / into /section and /app2 into /section/app2) > > Am I just going about this the wrong way? > > I appreciate any help you could give me... > > Matt Haggard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
