GAE Java FE env deployment issue

53 views
Skip to first unread message

Deepak Singh

unread,
Apr 2, 2016, 2:59:41 PM4/2/16
to google-a...@googlegroups.com
Hi,

I have a running java web app on gae sandbox for last 3 years. Now would like to migrate it to GAE flexible env. We found the documents which recommends to use maven and build and deploy. We dont use maven in our app and would like not to use. So, is there any convenient way to deploy the app on FE without a maven project architecture ? Pls sugeest.

--
Tech

ludovic Champenois

unread,
Apr 2, 2016, 6:38:08 PM4/2/16
to google-a...@googlegroups.com
So I guess you've been using the appcfg.sh tool to deploy a web app built the way you want...(maybe via Ant?)

Continue to do that, but change the flags used by appcfg and replace the update subcommand with the stage sub command. The stage subcommand takes an extra param at the end that is the location of an empty staging directory that will be populated with correct content.
Then you can use the Cloud SDK to deploy this staging directory (pointing to it's app.yaml at the root).
gcloud preview app deploy stagingDir/app.yaml
Ludo
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAF6cnzbYypRrMJZzGihN6CGHGJdR7qrjN6U%2ByyBoP23CXAQGXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Deepak Singh

unread,
Apr 3, 2016, 2:16:47 PM4/3/16
to google-a...@googlegroups.com
Thanks Ludovic. Got this idea and worked on it.

However when we run the gcloud preview app deploy /app.yaml, throws following error

INFO: Attempting refresh to obtain initial access_token
INFO: Refreshing access_token
WARNING: If this is your first deployment, please try again.
ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
  Bad Request Unexpected HTTP status 400.
  Failed Project Preparation (app_id='s~----'). App Engine service
account has insufficient permissions for project. Developer or owner required.


All of the permissions are enabled in console but still the error persists. Could you pls help on the same ?



For more options, visit https://groups.google.com/d/optout.



--
Deepak Singh

ludovic Champenois

unread,
Apr 3, 2016, 6:23:58 PM4/3/16
to google-a...@googlegroups.com


On 4/3/16 11:16 AM, Deepak Singh wrote:
Thanks Ludovic. Got this idea and worked on it.

However when we run the gcloud preview app deploy /app.yaml, throws following error

INFO: Attempting refresh to obtain initial access_token
INFO: Refreshing access_token
WARNING: If this is your first deployment, please try again.
ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
  Bad Request Unexpected HTTP status 400.
  Failed Project Preparation (app_id='s~----'). App Engine service
account has insufficient permissions for project. Developer or owner required.


All of the permissions are enabled in console but still the error persists. Could you pls help on the same ?
Do a gcloud config list
and see if the account listed here is an owner.
Ludo
Reply all
Reply to author
Forward
0 new messages