MarkEdmondson1234 / appengine-shiny

Looking at deploying Shiny apps on Google App Engine with flexible containers
17 stars 3 forks source link

websocket issue #2

Closed dgvisnadi closed 5 years ago

dgvisnadi commented 6 years ago

I managed to get the shiny app up on GAE but I get the websocket error.

Could you explain what needs to be done regarding Nginx. I don't really get what I have to do to fix this issue.

chrimarf commented 5 years ago

Hi, I am facing the same problem and I don't understand where I should put the nginx thing. Here is my stack overflow issue : https://stackoverflow.com/questions/53051531/deploying-a-shiny-app-on-google-cloud-app-engine-returns-an-error. Would it be possible to have some clue about this ?

MarkEdmondson1234 commented 5 years ago

Please see this issue https://github.com/MarkEdmondson1234/appengine-shiny/issues/1 for discussion.

In brief, you need to be on GAE beta for flexible to get support for websockets. However that does not scale to 0, so I found it an expensive solution compared to just running your own static GCE instance. However, I arrived at Kubernetes being the best way to get what I wanted, which was a scale from 0 to a billion, on demand Shiny apps and recommend that as the way forward. I did a blog post on that http://code.markedmondson.me/r-on-kubernetes-serverless-shiny-r-apis-and-scheduled-scripts/

chrimarf commented 5 years ago

Thanks. I'll try