I have a python deployment script where I update the build info (build
nr., build date), compile the application, pack it and finally upload
it to a server. The script is in a location independent of web2py.

I can compile the application with:
sys.path.append(web2py_dir)
os.chdir(web2py_dir)
import gluon.compileapp
gluon.compileapp.compile_application('applications/myapp')

I don't know if this is the 'right' way but it works. How can I pack
the compiled application now? there is
gluon.admin.app_pack_compiled
but this needs the request object. How can I call it?

another question: the packed application also contains the folders
databases, cache etc. How does this work when the application is
installed on the server? are these folders simply ignored?

thanks,
Alex

Reply via email to