How to deploy create-react-app in AWS EC2

前端 未结 4 454
梦如初夏
梦如初夏 2021-01-18 06:22

I am using react-router so I want to host in AWS Ec2. How to deploy the app and run permanently in the background or let me know if any other way

4条回答
  •  有刺的猬
    2021-01-18 07:05

    You can use Amazon S3.

    Do npm run build in your local instance.

    Upload the files to S3 bucket instance.

    Static website hosting can be chosen.

    https://s3.console.aws.amazon.com/s3/buckets

提交回复
热议问题