create-react-appをgoogle cloud platformのapp engineで動かそうとした時に戸惑ったので、その時のメモです。
普通にdeployすると node app.js が動いてしまって、create-react-appで作られたアプリが起動しない。
そこで下記を実行する。
npm run build
次に、yamlファイルで下記のように書いてやる。
handlers:
- url: /
static_files: build/index.html
upload: build/index.html
- url: /
static_dir: build
で、deployするとcreate-react-appで作られたアプリが起動してくれます。