doumen6605 2017-11-29 14:17
浏览 38

Google AppEngine Go WebApp

I have a ReactJS based Website with GO has Webserver/Backend with a REST API approach. At least this is how it would run on a normal dedicated server.

I'm trying to move the project to the Google Cloud but I have some issues.

I kicked out all the static file serving from my GO application because the Google Guide told me that the App Engine can handle the Static File serving. But its not serving any... my app.yaml looks as follow:

runtime: go
env: flex
api_version: go1.8

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10
env_variables:ur
  CLOUDSQL_CONNECTION_NAME: xxx
  CLOUDSQL_USER: xxx
  CLOUDSQL_PASSWORD: 'XXX'
  GCLOUD_STORAGE_BUCKET: xxx
  REDIS_ADDR: "<REDIS_HOST>:<REDIS_PORT>"
  REDIS_PASSSWORD: ""
handlers:
- url: /
  mime_type: text/html
  static_files: static/index.html
  upload: static/index.html
  application_readable: true

- url: /public/css
  mime_type: text/css
  static_dir: static/public/css
  application_readable: true

- url: /public/js
  mime_type: text/javascript
  static_dir: static/public/js
  application_readable: true

- url: /.*
  script: _go_app

The "static" folder is also in the project folder from where i start the deploy. How can i check if the files are even uploaded?

I always get a response from the GO Server

  • 写回答

1条回答 默认 最新

  • doudou32012 2018-05-23 09:23
    关注

    The flex version does not support handlers, as far as i understand.

    评论

报告相同问题?

悬赏问题

  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗