简体   繁体   中英

Deploy only build react app to app engine

I managed to deploy correctly a react app to google app engine.

The build folder is correctly served from app engine, but the deployment contains also all the other files.

How can I deploy only the build folder?

You can add all the files and folder you do not want to deploy to the.gcloudignore file. It's very similar to.gitignore for git. More on.gcloudignore here: https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM