I hope someone can help-me.
I'm trying to move my development workflow to the web, so I would not need to install anything locally.
To accomplish it I'm using codeanywhere and storing my code on bitbucket, which is connected with my project´s cloud platform.
Everything is working fine, I make a change on codeanywhere commit it on bitbucket and see the change on my project's source code (on the cloud plataform). But the changes are not reflected on my application (the actual source code running my application isn't updated).
I'm running out of alternatives, I tried to update it using the Cloud Platform's Cloud Shell but I couldn't even cd to the source code folder.
Does anyone know how to deploy the source code from the Cloud Plataform to App Engine?
I need a full online workflow.
Thank you in advance for your help
You can use source-repositories of GAE to keep source code and run application from shell for example running application gradle appengineRun & deploy application gradle gradleappengineUpdate using gradle
You can see this link for building, running and deploying application using maven.
Related
I am currently using Google's 'legacy standalone SDK' for management of my google app engine python projects. This provides a nice GUI where I can select and run a project locally and then deploy it when I'm happy with testing.
I recently received the following message from Google '... App Engine app that has used the legacy standalone SDK in the past 30 days, and need to be migrated to Cloud SDK' so I installed the Cloud SDK.
The provided Google Cloud SDK Shell a) runs as a dos window, and b) appears to duplicate the on-line (live) Dashboard. Given that I can't change (local) code and deploy without testing, my questions are:-
1) how do I run a project locally?
2) how do I view local logs?
3) when happy, how do I deploy?
or... is there GUI for the Local Environment?
or... is the above documented somewhere that I have not found?
Many thanks and apologies if this is a dumb question.
David
On July 30, 2019, the standalone App Engine SDK is deprecated. Here you can check documentation how to migrate from AppCft to gcloud command line
How to test your application locally?
For Python you can use Local Development Server that includes Cloud Datastore Emulator. (There is also solution for Java Java 8 Local Development Server).
How to view logs locally?
In python to debug your code from the command line use interactive console. You have to import to your code PDB debbuger
How to deploy application?
You deploy your app with gcloud command gcloud app deploy. Cloud SDK does not include GUI for deployment.
Since yesterday evening the Push-to-Deploy stopped working totally. If I Push a Git commit to the master it's not been deployed anymore. At first I thought this was a problem related to the App Engine Project itself. I've deleted the Release Pipeline and wanted to recreate it. Now the Console only shows the instructions to create a Jenkins Pipeline.
See this documentation for information on how to set up Jenkins, and configure continuous deployment for your GCP apps.
After that I've manually deployed the app to see if there are any issues with my source. The GoogleAppEngineLauncher is deploying the application with no problem at all. I've tried to reproduce this in other AE projects and noticed all projects currently don't process the Git pushes into a deployment.
Are more users experiencing this?
Yea, Now you have to use Jenkins using google cloud instance. See the updated documentation on there website https://cloud.google.com/tools/repo/push-to-deploy
Recently I've found out App Engine 1.9.1 has a bug which however does not occur in version 1.8.9 and below. I am developing my applications with Eclipse and the Google Plugin for Eclipse. In the Google properties of the project I switched back to 1.8.9. If I work locally I can see that it is using version 1.8.9 (the bug does not occur) however when I deploy to App Engine no matter what I do it will still run on 1.9.1. I even tryed to create a new project/application from scratch, still 1.9.1. I even deleted SDKs 1.9.1 and 1.9.0 from my system but nothing seems to help. What can I do? Thanks.
You don't control the version in production. It runs on Google servers and isn't deployed as part of your app.
Welcome to the cloud world where some parameters slip from your hand no matter how hard you try...
Indeed, you have no control over the AppEngine version that will be used to run your application in production. In fact, if you look carefully in the list of instance on your cloud console, you will see sometimes that some instances use an AppEngine version that is not even publicly available at the moment.
Question about getting the Java starter project booted up on Google App Engine
https://developers.google.com/glass/quickstart/java
In that quickstart when configuring Eclipse it says
Uncheck the Use Google App Engine checkbox and save.
However if I follow the instructions on the above page - including Eclipse with the Google plugin - I get a project which can be run on localhost. If I try to upload the App Engine it says this is not a App Engine project and won't upload.
So then if I make it one (go under the Google->App Engine settings) the Eclipse project complains about the jars under
web/WEB-INF/lib
and still won't upload. If I delete them then I get a project that doesn't compile either. So what do I need to do specifically to get this to load to the cloud?
Related to this is that I'm confused about the relationship between Maven and Eclipse - the two seem to be a cross purposes as Maven populates the lib directory but I keep wrangling with Eclipse over it too. The App Engine plugin seems to want to use it's jars, while the app-engine code I downloaded per the instructions (to get the bin utils app-cfg) want to be used too by Maven AFAIK.
Deploy to App Engine from the command line using appcfg.sh.
Getting many IDEs and App Engine to all work in the same project has led to some compromises due to differing assumptions made by each of the tools involved. For example, the Eclipse App Engine plugin makes different assumptions about the structure of projects than other IDEs. The compromise was to fall back to the official command line tools since they seem the most tolerant of variation and are always available.
Maven is part of the project to handle dependency management.
If you'd like to use Eclipse for your deployment too, you'll probably want to create a new Eclipse App Engine project and copy the libraries and code into that project.
Is there a way to manage interactively (view/delete) config and code of an application in google app engine? I understand that the deployment approach is versioned batch upload, but can i at least download back a collection of uploaded files of current (or any given) revision of an app? Or is there even an interface for GAE similar to CVS/SVN/GIT with features like revisions diff?
You can download your deployed code as of SDK version 1.3.8 according to the prerelease announcement
This feature was apparently not included in 1.3.8, but it seems to at least be in the works.
The developer who uploaded an app
version can download that version's
code using the appcfg.py
download_app command. You can use this
to download both Python and Java
application code.
You can't interactively configure your app, or modify the code without redeploying, however.
No, you cannot download a deployed application. The only way to see the source is if you have it. You can use git/CVS/SVN but it wont have anything to do with the actual deployment of the application.
Edit: Here are the docs