>
> I was referring to admin/compile_app. Isn’t that supposed to help improve 
> performance ?
>

A little. Not significative compared to DB IO. It helps if you have complex 
templates and little to none controller/models logic.
 

>
> Make sure you look into gluon/contrib/heroku.py
>
>
> I’ve been looking at it for the past few months yeah… and ended up 
> rewriting most of it.
>

:-) I would be great if you could share it.
 

> The problem with web2py and PaaS thus far is that most of the 
> cloud/multi-server logic in web2py is hard-coded and dedicated to 
> GoogleAppEngine (in dal.py for instance)
>
> That’s cool and all, but many little features end up missing for other 
> type of PaaS services.
> As far as Heroku’s concerned, I think the recommended way to outscale 
> gluon/contrib/heroku.py is to build a proper buildpack.
>
> Problem in a multi-server environment is that only one of the server can 
> do migrations at once but all need the correct .table files
>
>  
> If the buildpack runs before the deployment of the main server (or any 
> additional instance for that matter), it would build all the correct .table 
> files.
> The only tricky part I see is how to operate the actual migrations on the 
> shared database only once.
>
> So far the only solution I’ve found is manually running SQL code to alter 
> or create the tables I need.
>
> Le 12 mars 2015 à 19:49, Massimo Di Pierro <[email protected]> a 
> écrit :
>
> 1. You do not need to byte compile form shell. The code is byte compiled 
> when requested
>
> 2. bug can of worms. Problem in a multi-server environment is that only 
> one of the server can do migrations at once but all need the correct .table 
> files. I do not have a simple answer. Make sure you look into 
> gluon/contrib/heroku.py
>
> On Thursday, 12 March 2015 09:02:54 UTC-5, Louis Amon wrote:
>>
>> I'm trying to create a Buildpack designed specifically for deploying 
>> Web2py-based applications on Heroku.
>>
>> Buildpacks are shell programs that are used to build & deploy slugs on 
>> Heroku.
>> The buildpack runs *before* the web2py application is launched.
>>
>> It is basically a kind of deploy hook.
>>
>>
>> The features I'd like to include in the web2py buildpack are :
>>
>>    - Byte-compilation of the web2py application
>>    - Migration and/or re-creation of the .table files
>>    - Installation of pip dependencies
>>
>> This would allow automatic optimization of the run speed and tackle the 
>> very tricky ephemeral filesystem of Heroku.
>>
>>
>> I could really use some insights about how I should go about building 
>> this.
>>
>> Specifically, I need to know:
>>
>>    1. how to to byte-compile directly from the shell or from a python 
>>    script
>>    2. what strategy I should use to handle migrations at deploy-time
>>    
>>
>> This is the official buildpack for Python, which I intend to build mine 
>> upon : https://github.com/heroku/heroku-buildpack-python
>>
>> This is the documentation for the Buildpack API provided by Heroku : 
>> https://devcenter.heroku.com/articles/buildpack-api
>>
>>
> -- 
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> --- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/web2py/uNYUnvZSxqs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to