pack application

257 views
Skip to first unread message

Alex

unread,
Jan 9, 2012, 2:39:49 PM1/9/12
to web2py-users
Hello,

I want to pack my application from a script/command line (not running
in web2py). How can I achieve this?

I can compile the application with
gluon.compileapp.compile_application('applications/myapp')
there is
gluon.admin.app_pack_compiled
to pack it, but this function needs the request object so I don't know
how I can call it. Please also let me know In case it is not possible
so I don't spend more time searching for possible solutions.

Alex

PS: I already asked this question 1 month ago but did not get any
answers, I hope it's ok to try again.

Massimo Di Pierro

unread,
Jan 9, 2012, 4:21:30 PM1/9/12
to web2py-users
cd applications/app
tar zcvf web2py.app.name.w2p *

Alex

unread,
Jan 9, 2012, 5:49:33 PM1/9/12
to web2py-users
thanks! do I really need everything in the archive or would the
directories 'compiled' and 'static' be enough?

On 9 Jan., 22:21, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:

Massimo Di Pierro

unread,
Jan 9, 2012, 9:19:22 PM1/9/12
to web2py-users
compiled and static are enough if you do not want to distribute the
source.
Reply all
Reply to author
Forward
0 new messages