Skip to content

Commit a2fd8fb

Browse files
committed
add some more Heroku details
1 parent 9818199 commit a2fd8fb

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

flask/part5_deploy/README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ To *register* a new application with Heroku, use the `apps:create` command. **Yo
185185
heroku apps:create students-flask
186186
```
187187

188-
Heroku applications must have a unique name, so if yours is taken, you will need to choose another name. It does not need to match your app folder name.
188+
Heroku applications must have a unique name, so if yours is taken, you will need to choose another name. It does not need to match your app folder name. Here I have used *students-flask*.
189189

190190
The command will return the **web address** of your app: https://students-flask.herokuapp.com/
191191

192192
You'll *register* the app only *once.*
193193

194-
Before you *push to Heroku,* make sure all changes are *committed* (in the GitHub Desktop app).
194+
**IMPORTANT:** Before you *push to Heroku,* make sure all changes are *committed* (in the GitHub Desktop app).
195195

196196
Then at the bash prompt (`$`), type:
197197

@@ -201,6 +201,28 @@ git push heroku master
201201

202202
Many lines of messages from the *remote* branch on Heroku will be printed to the Terminal. Wait until you see `Verifying deploy... done.` And then ... you're back at the bash prompt (`$`).
203203

204+
If you get this error message:
205+
206+
```bash
207+
fatal: 'heroku' does not appear to be a git repository
208+
fatal: Could not read from remote repository.
209+
210+
Please make sure you have the correct access rights
211+
and the repository exists.
212+
```
213+
214+
This should fix it (use your own Heroku app name, not *students-flask*):
215+
216+
```bash
217+
heroku git:remote -a students-flask
218+
```
219+
220+
Now this should work:
221+
222+
```bash
223+
git push heroku master
224+
```
225+
204226
Use your web browser to go to the web address given above to view the active app.
205227

206228
You'll find you have a new *branch* in your local repo.

0 commit comments

Comments
 (0)