I work from a laptop or a desktop, depending where I am. I recently created two app-engine projects, no issues on either machine. I created and deployed a third using a laptop, which shows-up on https://code.google.com/apis/console.
Switching back to the original desktop machine, with all the files copied across, this third project is unusable ("does not exist") from the App Engine Launcher. Looking at https://appengine.google.com/dashboard the third project is not there.
I created and deployed a fourth project which is fine and appears in both. All I did was to use the project 3 files, change the application name in app.yaml and Add Existing Application.
So https://code.google.com/apis/console dashboard shows all 4 projects, https://appengine.google.com/dashboard only shows 3 (1,2,4).
My guess is that the App Engine Launcher does not get refreshed from the web. I copied all files from laptop to desktop, but perhaps I missed some. Any ideas?
I am using Windows 7 on both machines, and not using Eclipse (just a text editor).
The App Engine Launcher does not do automatic synching of any sort. Yes, you can deploy your project to the App Engine servers, but it doesn't automatically pull projects down.
You just need to use Add Existing Project to add project 3 to your App Engine Launcher on your desktop.
Keep in mind that if you update the app from one machine, you will need to manually synch your codebase on the other machine.
Related
I want to create multiple services for the backend of my Android App, because some modules will be called by the users, but others have to start automatically each X hours with a cron.xml setting of Google App Engine.
However when I deploy each module from Android Studio to my Google Cloud Platform Project, only the last deployed is online. I know that I can use versions to make a differentiation between modules, but this is more like a hacky solution no?
I want to know if there is way to create a App Engine microservice architecture with Android Studio? Or the only solution is to deploy as different version?
Thanks for your help.
The answers is finally very easy. In the appengine-web.xml, a module name shall be added using:
<module>yourmodulename</module>
Then when deploying you will have a new service automatically. Your first android studio backend module shall be the default, the others you have to give then a name.
How can we un-deploy an application from GAE?I don't want to delete the Project, instead I am trying to undeploy the app and use the same project to deploy completely different code.
Just deploy a new code, as a new version, then remove previous version.
You need at least one version always deployed, but if you don't have any replacement at this moment you can deploy a simple one static page project.
I have an old project (~1.5 years) that I want to start working on again. It shows up in the project list in the developers console. I am wanting to add an App Engine component to the project, but this item is missing from the categories on the left, i.e. under Compute I only have "Compute Engine, Container Engine, Click to Deploy".
Another project that I started more recently also lists "App Engine" before "Compute Engine".
I am thinking that this is an older project that hasn't been updated completely on the back-end. When I recently (this week) went into the project, a popup asked me to accept a Project ID(i.e. random-word-####). Previously the project didn't have a Project ID, just a Project Number.
I tried to follow a process that I saw for linking an App Engine to an existing Cloud Project, but creating a new App Engine project automatically creates a new Cloud Project.
Is there a way to be able to create a new App Engine program under an older Cloud Project?
Adding App Engine support to existing projects that were created outside of Developers Console is currently not possible. This is something we are working on, and I expect it to be added in the coming months.
I am creating a GAE application, and I am following the proposed structure of modularized GAE applications in Eclipse with WTP, as documented here (see section "Enterprise Application EAR").
I have created and linked a local server instance of GAE, and the deployment of the EAR with its modules to the GAE development instance at localhost works fine.
However, when I try to "Deploy to App Engine" (via the Google button) in order to release my app to the Google remote server, I am stuck with the error "...(EAR project name) is not an App Engine project". I have also tried to define a new server with a remote address, but this fails with the error "The currently selected server type does not support remote hosts". The host name's field is restricted to "localhost" as a valid server address.
My Eclipse project structure looks as follows:
<<Enterprise Application Project>> ear-app
|
-- <<Dynamic Web Project>> app-module-1
-- <<Dynamic Web Project>> app-module-2
-- <<Dynamic Web Project>> app-module-3
-- <<Dynamic Web Project>> app-module-4
Please note that this is not a single "Google / Web Application Project", which works as expected (but does not support modularization with multiple Eclipse projects).
Please also note that I am not using Maven and the proposed mvn commands, as documented here.
I am using the GAE SDK 1.9.3 and GPE 3.5.1 in Eclipse Kepler 4.3.1.
So how do I deploy the Eclipse WTP project structure to Google remote servers? If this is not possible, do you suggest that I switch to Maven, and if so, does this support a multi-module project to be managed from within Eclipse?
Rather by chance, I stumbled across the solution:
In the Servers view, and upon right-click of the local development server, there is another context menu entry "Google App Engine WTP / Deploy to Remote Server". This will deploy the EAR and all modules to the Google infrastructure. There is also a "Google App Engine WTP" button in the Servers view's menu, offering the same options.
Frankly, I find this a highly inconsistent UI implementation: If we create a project of type Google Web Application, then the Google button in the main menu is effective, and the context menus can be found as "Google...". These become invalid (but are still present) when we create a multi-module EAR structure in the WTP style. This will create a different set of buttons and context menu entries, all in different places, and the context menu of the LOCAL server would then support deployment to the REMOTE server.
UPDATE:
After using the GAE tools for a couple of weeks, I finally switched to the command line options (appcfg) for remote deployments. I had additional errors in GPE for deployment rollbacks (which fail in Eclipse but work with appcfg). I recommend appcfg as administration tool for the Google infrastructure, it provides more control and it is more mature than the Eclipse plugin.
I have developed an project in java and exported as war file it runs in tomcat . can i use this application in google application engine.
1) Will my war file works in google app engine.
2) Do i need to change any thing to make it work??
Unless we are talking about a "Hello World" type of application, you will most likely have to change some things to make it work.
In particular your interactions with a database will need to be re-thought to work with the app engine data store. Same goes for file system access (not possible on app engine) and a couple of sandboxed libraries.