Skip to content

domenicosolazzo/create-react-app-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for create-react-app

Deploy React.js web apps generated with create-react-app.

Automates deployment with the built-in tooling and serves it up via Nginx.

Requires

Usage

Generate a React app

create-react-app my-app
cd my-app

Make it a git repo

git init

Create the Heroku app

Requires the command-line tools & a free account from Heroku.

heroku create -b https://github.com/mars/create-react-app-buildpack.git

Commit & deploy ♻️

git add .
git commit -m "react-create-app on Heroku"
git push heroku master

Visit the live React app in your browser

heroku open

Continue Development

Work with your app locally using npm start. See: create-react-app docs

Then, commit & deploy ♻️

Customization

The web server may be configured via the static buildpack.

The default config, if static.json does not already exist, is:

{ "root": "build/" }

Router Push State

To support clean URLs with React Router (not included), configure with HTML5 Push State from Getting Started with Single Page Apps on Heroku.

About

Heroku Buildpack for create-react-app: static hosting for React.js web apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%