heroku 自动部署create-react-app项目

来源:互联网 发布:scada数据采集 编辑:程序博客网 时间:2024/06/09 12:05

本文介绍heroku服务器上部署react项目,会自动编译,打包源码

npm install -g create-react-appcreate-react-app my-appcd my-appgit initheroku create -b https://github.com/mars/create-react-app-buildpack.gitgit add .git commit -m "react-create-app on Heroku"git push heroku masterheroku open