You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
Hi,
what is the best way to have settings depending on the environment? I
know this question has been asked a couple of times before but I could
not find any useful answers.
I want to run multiple instances of my application for multiple
customers, which also means a different db connection for each
instance. I did not see an (elegant) solution in web2py for this
problem. I do not want to create a new package for each instance which
would be really annoying to do for each deployment. Currently I'm
passing the db settings as environment variables. For me this feels
more like a hack but at least it worked - so far. Now I want to run
cron jobs with external cron. This is a problem because I can't pass
the environment settings (which I would have to hard code a second
time anyway), so I can't access the db in the cron job tasks.
It would really be great if web2py had some config settings like in
most other frameworks.
Bruno Rocha
unread,
Mar 17, 2012, 10:09:12 PM3/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
sorry, I don't understand your answer. What does mult tenance mean?
There is no description for tenant in the request documentation. When
I access request.tenant in my local app it is None.