📜  如何在 Heroku 上托管 React 应用程序 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:09.106000             🧑  作者: Mango

代码示例1
npm install -g create-react-app
create-react-app my-app
cd my-app
git init
heroku create -b https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "react-create-app on Heroku"
git push heroku master
heroku open