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:
- Create a basic react project and run it locally:
npx create-react-app my-app
cd my-app
npm start
- Build for production:
npm run build
- Configure GAE to add a the new service 'client': gcloud init
Add an app.yaml file to the root of the react project with the following contents:
runtime nodejs10
service client
- Deploy to GAE:
gcloud app deploy
I get the following result:
ERROR: gcloud crashed (TypeError): expected string or buffer
Thanks, -Louise