Hello,
I know I may compile my app using the web interface. I wish to deploy
the bytecode often. Is there any way to perform the compilation by script?
I have found, that there is a function "compile_application" in
gluon.contrib.compileapp.py, but the module is labeled "FOR INTERNAL USE
ONLY" so I do not know whether it is a good idea to try it directly
somehow :)
Thanks,
David
- --
David Zejda
http://www.tabang.eu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkstMfMACgkQ3oCkkciamVFRogCffwB1qQACTQlbO1MFJTEqh7bf
830AoJMxVHjKvE9j4A7SpTcWm0HEdHA5
=2F0z
-----END PGP SIGNATURE-----
from gluon.admin import app_compile
app_compile(request.application, request)
and run it with
python web2py.py -S yourappname -R compile.py
I have not tried it but should work. Everything that can be done via
admin interface has an API in the gluon.admin module.
Let us know if it works.
Massimo
On Dec 19, 2:05 pm, David Zejda <d...@atlas.cz> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I know I may compile my app using the web interface. I wish to deploy
> the bytecode often. Is there any way to perform the compilation by script?
>
> I have found, that there is a function "compile_application" in
> gluon.contrib.compileapp.py, but the module is labeled "FOR INTERNAL USE
> ONLY" so I do not know whether it is a good idea to try it directly
> somehow :)
>
> Thanks,
> David
>
> - --
> David Zejdahttp://www.tabang.eu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org