"flow-build-info.json" not found at deployment

(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.

Hello!

It seems the the build hasn’t automatically prepared the frontend. Could you try to build it manually, please?

Instructions can be found here:

[IntelliJ IDEA]
(https://vaadin.com/docs/v14/flow/workflow/run-on-server-intellij.html) /
[Eclipse]
(https://vaadin.com/docs/v14/flow/workflow/run-on-server-eclipse.html)

Let me know how it goes or if you need help to do that!

Thank you Mr Sukoinen.
It was in fact a problem with prepare-frontend and production mode because I didn’t
set it up in my pom.xml .
I got another problem though. My docker image is 750MB, which is crazy because my app
is not that big; the only big folder I have is node_modules. Therefore I can not deploy
on GCP because its limited at 250MB I think. Maybe I didn’t build it right.

I was actually just testing how much time it will take me to deploy and I will probably
have to read more documentation because I encountered a lot of 500 http errors.
Do you have any recommendation?

My docker image is 750MB, which is crazy because my app is not that big; the only big folder I have is node_modules.

Answered in https://vaadin.com/forum/thread/18505049/18506655