0
votes

My component/service 'default' in my GAE project is a Java backend. Now I want another component/service e.g. 'client' which is a react frontend, calling the Java backend. As a start I just want to deploy create-react-app, so I did the following:

  1. Create a basic react project and run it locally:

npx create-react-app my-app

cd my-app

npm start

  1. Build for production:

npm run build

  1. Configure GAE to add a the new service 'client': gcloud init
  2. Add an app.yaml file to the root of the react project with the following contents:

    runtime nodejs10

    service client

    1. Deploy to GAE:

gcloud app deploy

I get the following result:

ERROR: gcloud crashed (TypeError): expected string or buffer

Thanks, -Louise

1

1 Answers

0
votes

Sorry, my mistake - it turns out that I somehow did not include the colons in the app.yaml - a variant of this error: GAE app deployment fails with 'crash' error