(Vaadin version : 14.4.4)
Hi, I’m trying to deploy a vaadin app on google cloud platform. The app runs fine but I’m getting an error at deployment.
I followed this tutorial for the deployment : https://vaadin.com/learn/tutorials/cloud-deployment/google
here is the error I’m getting at deployment:
2021-01-01 13:00:48.941 INFO 8 --- [ main]
c.v.f.s.VaadinServletContextInitializer : Search for subclasses and classes with annotations took 1 seconds 2021-01-01 13:00:48.948 ERROR 8 --- [ main]
o.a.c.c.C.[Tomcat]
.[localhost]
.
[/] : Exception sending context initialized event to listener instance of class [com.vaadin.f low.spring.VaadinServletContextInitializer$DevModeServletContextListener]
java.lang.IllegalStateException: ***Failed to determine project directory for dev mode. Directory '/' does not look like a Maven or Gradle project. Ensure that you have run the prepare frontend Maven goal, which generates 'flow-build-info.json', prior to deploying your application***
at com.vaadin.flow.server.startup.DevModeInitializer.getBaseDirectoryFallback(DevModeInitializer.java:399) ~[flow-server-2.4.3.jar!/:2.4.3]
at com.vaadin.flow.server.startup.DevModeInitializer.initDevModeHandler(DevModeInitializer.java:255) ~[flow-server-2.4.3.jar!/:2.4.3]
at com.vaadin.flow.spring.VaadinServletContextInitializer$DevModeServletContextListener.contextInitialized(VaadinServletContextInitializer.java:369) ~[vaadin-spring-12.3.2.jar! /:na]
…
I also got the same error when I containerized it with docker and I ran it.
Could anybody help me.