From 37fdba83b1ba114049ea41519320dd09cb372d90 Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Fri, 19 Aug 2016 16:08:46 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20doc=20updates:=20link=20to=20das?= =?UTF-8?q?hboard=20(resolves=20#3)=20&=20add=20Heroku=20app/buildpack=20c?= =?UTF-8?q?ontext=20(resolves=20#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 694a64af..0c862642 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,22 @@ cd my-app git init ``` +At this point, this new repo is local, only on your computer. Eventually, you may want to [push to Github](#push-to-github). + ### Create the Heroku app ```bash -heroku create -b https://github.com/mars/create-react-app-buildpack.git +heroku create my-app-name --buildpack https://github.com/mars/create-react-app-buildpack.git ``` +✏️ *Replace `my-app-name` with a name for your unique app.* + +This command: + +* sets the [app name](https://devcenter.heroku.com/articles/creating-apps#creating-a-named-app) & its URL `https://my-app-name.herokuapp.com` +* sets the [buildpack](https://devcenter.heroku.com/articles/buildpacks) to deploy a `create-react-app` app +* configures the [`heroku` remote](https://devcenter.heroku.com/articles/git#creating-a-heroku-remote) in the local git repo, so `git push heroku master` will push to this new Heroku app. + ### Commit & deploy ♻️ ```bash @@ -54,9 +64,7 @@ heroku open ### Visit the Heroku Dashboard for the app -```bash -heroku browse -``` +Find the app on [your dashboard](https://dashboard.heroku.com). ### Continue Development @@ -64,6 +72,10 @@ Work with your app locally using `npm start`. See: [create-react-app docs](https Then, commit & deploy ♻️ +### Push to Github + +Eventually, to share, collaborate, or simply back-up your code, [create an empty repo at Github](https://github.com/new), and then follow the instructions shown on the repo to **push an existing repository from the command line**. + Customization -------------