Update version of GAE application, using php and CURL

169 views
Skip to first unread message

Денис Тимонин

unread,
May 19, 2012, 6:12:39 AM5/19/12
to Google App Engine

I have GAE application and server with apache and php. I want to
update my GAE application (1 file "helloworld.py"). How can i do this
through server with PHP?
I want to upload new version. On my serever (with Apache and PHP) i
have a new version of GAE application (new version of 2 files
"app.yaml" and "helloworld.py" ) with new code version and i want to
upload these 2 files, with new code version, in my application
(123test.appspot.com). Using CURL.

Barry Hunter

unread,
May 19, 2012, 3:11:09 PM5/19/12
to google-a...@googlegroups.com
Why CURL?

Just use shell_exec (or one of the other very similar functions) to
run appcfg.py

http://php.net/manual/en/function.shell-exec.php


Don't reinvent the wheel; appcfg.py script is tried and tested.
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>

Денис Тимонин

unread,
May 20, 2012, 4:12:17 AM5/20/12
to google-a...@googlegroups.com
Thanks, i know it. But i want do that without using appcfg.py. Is it possible?

суббота, 19 мая 2012 г., 23:11:09 UTC+4 пользователь barryhunter написал:
Why CURL?

Just use shell_exec (or one of the other very similar functions) to
run appcfg.py

http://php.net/manual/en/function.shell-exec.php


Don't reinvent the wheel; appcfg.py script is tried and tested.


On Sat, May 19, 2012 at 11:12 AM, Денис Тимонин <denti...@gmail.com> wrote:
>
> I have GAE application and server with apache and php. I want to
> update my GAE application (1 file "helloworld.py"). How can i do this
> through server with PHP?
>  I want to upload new version. On my serever (with Apache and PHP) i
> have a new version of GAE application (new version of 2 files
> "app.yaml" and "helloworld.py" ) with new code version and i want to
> upload these 2 files, with new code version, in my application
> (123test.appspot.com). Using CURL.
>
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

Strom

unread,
May 20, 2012, 9:44:51 AM5/20/12
to Google App Engine
Yes it is possible, just re-implement it yourself.

On May 20, 11:12 am, Денис Тимонин <dentimo...@gmail.com> wrote:
> Thanks, i know it. But i want do that without using appcfg.py. Is it
> possible?
>
> суббота, 19 мая 2012 г., 23:11:09 UTC+4 пользователь barryhunter написал:
>
>
>
>
>
>
>
>
>
> > Why CURL?
>
> > Just use shell_exec (or one of the other very similar functions) to
> > run appcfg.py
>
> >http://php.net/manual/en/function.shell-exec.php
>
> > Don't reinvent the wheel; appcfg.py script is tried and tested.
>
> > On Sat, May 19, 2012 at 11:12 AM, Денис Тимонин <dentimo...@gmail.com>
> > wrote:
>
> > > I have GAE application and server with apache and php. I want to
> > > update my GAE application (1 file "helloworld.py"). How can i do this
> > > through server with PHP?
> > >  I want to upload new version. On my serever (with Apache and PHP) i
> > > have a new version of GAE application (new version of 2 files
> > > "app.yaml" and "helloworld.py" ) with new code version and i want to
> > > upload these 2 files, with new code version, in my application
> > > (123test.appspot.com). Using CURL.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups "Google App Engine" group.
> > > To post to this group, send email to google-a...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > google-appengi...@googlegroups.com.

Денис Тимонин

unread,
May 21, 2012, 12:40:11 PM5/21/12
to google-a...@googlegroups.com
Thank you. I have a one more question.
For example, i have 2 GAE applications. First is test1.appspot.com and the second is test2.appspot.com.
And i want to update code of my "test2.appsopt.com" application, through "test1.appspot.com" application.

In first appIication ("test1") i want to select file "helloworld.py"(with new code version) using form (<form enctype="multipart/form-data" >) , and then i wan to upload this file into test2.appspot.com ( update the old version of the code, in my application, to the new).
Can i do this?
What should I do to make it?
Sorry for my english)


суббота, 19 мая 2012 г., 14:12:39 UTC+4 пользователь Денис Тимонин написал:
суббота, 19 мая 2012 г., 14:12:39 UTC+4 пользователь Денис Тимонин написал:
Reply all
Reply to author
Forward
0 new messages