You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flask/part5_deploy/README.md
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -185,13 +185,13 @@ To *register* a new application with Heroku, use the `apps:create` command. **Yo
185
185
heroku apps:create students-flask
186
186
```
187
187
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*.
189
189
190
190
The command will return the **web address** of your app: https://students-flask.herokuapp.com/
191
191
192
192
You'll *register* the app only *once.*
193
193
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).
195
195
196
196
Then at the bash prompt (`$`), type:
197
197
@@ -201,6 +201,28 @@ git push heroku master
201
201
202
202
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 (`$`).
203
203
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
+
204
226
Use your web browser to go to the web address given above to view the active app.
205
227
206
228
You'll find you have a new *branch* in your local repo.
0 commit comments