部署服务器/客户端应用程序引擎Google Cloud Platform(GCP)

时间:2018-01-06 16:28:59

标签: node.js reactjs google-app-engine google-cloud-platform gcp

我开发了React应用程序,运行时是nodejs,这个应用程序包含服务器/客户端,我想将它部署到Google Cloud Platform - App Engine,这是我的 package.json 但是发生了什么在部署之后,只部署了服务器并且正在运行,但客户端未部署

{
  "name": "newapp",
  "version": "1.0.0",
  "description": "my test app",
  "scripts": {
    "client": "cd client && yarn start",
    "server": "nodemon server.js",
    "dev": "concurrently --kill-others-on-fail \"yarn server\" \"yarn client\""
  },
  "dependencies": {
    "bootstrap": "^4.0.0-beta.3",
    "express": "^4.16.2",
    "mx-react-components": "^5.1.11",
    "mysql": "^2.15.0",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "reactstrap": "^5.0.0-alpha.4"
  },
  "devDependencies": {
    "concurrently": "^3.5.0"
  }
}

然后我尝试通过此命令行部署应用程序

gcloud app deploy

0 个答案:

没有答案
相关问题