I m new on java, i'm new on google cloud...so maybe my questions can sound stupid. I tried to find before to ask...but i dont found.
I'm triing to deploy a Java app to Google App engine. After a lot of tries i managed to compile the JAR with maven and deploy it to the cloud. I can see that its working with the logs (gcloud app logs). Now the problems i have are:
-I need to include a few files, configuration files, .env , api_config.properties etc... How can i do it? I tried to use include in the app.yaml but it doesnt find the file (ERROR: gcloud crashed (IncludeFileNotFound)) so i suppose this is not the way.
-I need to connect to a postegre instance. This part i didnt try it for now, so i dont know if i will have problems. As i understand i need to create a vm instance with a postegre sql server running on it (i will use bitnami postgre image) i dont need to open ports as it will be a conection from the inside, i m right?
edit: and now i see that its really not connecting the webserver that my app is creating with the app url. that shows "502 Bad Gateway nginx" message. I supose its because its listening on port 80 instead of 8080, because its not loading it from the config file.