Replies: 1 comment 6 replies
-
|
I obviously do not know your setup specifically, but it's likely that you need to grant access to the ports on the server you are running the serverpod on. It sound like it's running correctly from the output, you just need to get through the firewalls to it. You can also set a specific configuration for your deployed production server. E.g. if you want to run it on port 80, then start it with: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've created a docker image locally and have run that successfully locally on localhost. If I go to the end point locally it executes the server endpoint code and puts data into the db & returns data. I've now tried to deploy to GCP but my http request to the end point times out.
I don't get any errors in the logs but I do get the following line which seems to suggest serverpod is running ok
Server id 0 listening on port 8080My http request is exactly the same as my localhost request except for https & the url
https://mypod2y-xyzxyzxyz-ew.a.run.app:8080/example
The database connects to the server. I validated this by creating an execute command using the postgres package in the server.dart file in the main method using the same credentials as the database section in the config file.
I've set my publicHost name in the config to the url that is served by google cloud run. I've also changed the publicScheme to https. I'm leaving the publicPort as 8080.
I added a print statement to the beginning of my endpoint code but it doesn't print out to the log which suggests the code isn't being executed and the endpoint isn't being found.
Any ideas why the endpoint times out? Is there anything else we need to do when deploying to GCP or any server?
Beta Was this translation helpful? Give feedback.
All reactions