我正在开发一个新项目,将react/express作为前端,将回送作为后端api。在我的开发环境中,我用不同的端口将它们分开。
我应该如何在生产中部署它们?
发布于 2016-12-20 23:02:54
我刚刚为AWS回答了一个相关的问题。
你可以部署
- [AWS S3](https://aws.amazon.com/s3) + [AWS CloudFront](https://aws.amazon.com/cloudfront)
- [Google Cloud Storage](https://cloud.google.com/storage) + [Google Cloud CDN](https://cloud.google.com/cdn)
- [GitHub Pages](https://pages.github.com/) + [CloudFlare](https://www.cloudflare.com/)
- [Now](https://zeit.co/now)
- [Surge](https://surge.sh/)
- [Netlify](https://www.netlify.com/)
- etc
- [AWS Elastic beanstalk](https://aws.amazon.com/elasticbeanstalk) or [AWS EC2](https://aws.amazon.com/ec2)
- [Google App Engine](https://cloud.google.com/appengine)
- [Now](https://zeit.co/now)
- [Heroku](https://www.heroku.com/)
- etc
您可以在不同的主机上设置不同的子域。
app.domain.com在GitHub页面上的应用api.domain.comhttps://stackoverflow.com/questions/41247687
复制相似问题