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.
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)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With