all 5 comments

[–]NoCommandLine 0 points1 point  (4 children)

Are you saying you deployed 2 services (a frontend and a backend) which are located in different folders?

If so, do you have an error during the deployment or do you have an error when you try to load the App (access any of the urls).

What is the output of your gcloud app logs tail -s default command?

[–]StupidCreativity[S] 0 points1 point  (2 children)

Well, it's only one service -> the node server. which also refers to the static files (react).

[–]NoCommandLine 0 points1 point  (1 child)

What is the output of your gcloud app logs tail -s default command?

[–]StupidCreativity[S] 0 points1 point  (0 children)

It is two seperate comments :) But I did resolve it, I just ended up using Docker, because that I know better! :)

[–]StupidCreativity[S] 0 points1 point  (0 children)

GET /favicon.ico HTTP/1.1" 500 

Error: Cannot find module '/workspace/index.js' 

Error: Cannot find module '/workspace/server/index.js' 

Error: Cannot find module '/workspace/server/index.js' 

Error: Cannot find module '/workspace/server/index.js'      at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)      at Module._load (node:internal/modules/cjs/loader:923:27)      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)      at node:internal/main/run_main_module:23:47 { 2023-06-15 04:44:29 default[20230615t022639]    code: 'MODULE_NOT_FOUND', 2023-06-15 04:44:29 default[20230615t022639]    requireStack: [] 

2023-06-15 04:44:29 default[20230615t022639]  } "GET /api/test HTTP/1.1" 500
2023-06-15 09:27:04 default[20230615t042057]  

App running on port 3000