I have just started with GAE and I have already encountered problems on the way. When I deploy an app, it does not seem to be updating it and when I run it in the browser, it still runs the old version.
My simple code is:
import java.io.IOException;
import javax.servlet.http.*;
@SuppressWarnings("serial")
public class AppEngineProjectServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/html");
resp.getWriter().println("<p>Hi there</p>");
}
}
I have created a new web application project in Eclipse and I got that code. I have just changed the text from 'Hello World' to 'Hi there' and when I deploy it, it still runs Hello World!
I also try changing versions of the app when deploying and setting the new version to default but nothing seems to work for me. Is there any particular reason why is that happening that I might have overlooked?
If you want to see your changes immediately after uploading, change the application's version, then change the default in the admin console.
When you update, App Engine doesn't immediately hunt down and restart all of your instances. Such a thing would be traumatic for the users of large apps with many instances, especially when that app's instances are slow to start up.
Same thing happened to me with the new Eclipse 2018-09 and the new Google Cloud Platform that is replacing the super GDT Pulldown which worked well for so many years.
It is not about refresh Browser and super Google server stuff - it is a date mismatch between local computer and server becouse GCP is telling you what he worked :
#= Uploading 0 files to Google Cloud Storage =#
ZERO Uploads !
No matter what you change in the java programs if he decided that the file is already there there is no data transfer
So I started to do workarounds
After a long chat session the OP problem has been solved.
Major points:
Ctrl+F5
to refresh and discard local cache)Ctrl+F5
is your friend)