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: deploy/README.md
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -150,17 +150,33 @@ Next, we’ll create a new git repository and save our changes. Go to your conso
150
150
create mode 100644 requirements.txt
151
151
create mode 100644 runtime.txt
152
152
153
-
## Deploy to Heroku!
153
+
## Pick an application name
154
154
155
-
That was a lot of configuration and installing, right? But you only need to do that once! Now you can deploy!
155
+
We'll be making your blog available on the Web at `[your blog's name].herokuapp.com`, so we need to choose a name that nobody else has taken. This name doesn't need to be related to the Django `blog` app or to `mysite` or anything we've created so far. The name can be anything you want, but Heroku is quite strict as to what characters you can use: you're only allowed to use simple lowercase letters (no capital letters or accents), numbers, and dashes (`-`).
156
156
157
-
It's as simple as running this command, replacing `djangogirlsblog` with your own application name:
157
+
Once you've thought of a name (maybe something with your name or nickname in it), run this command, replacing `djangogirlsblog` with your own application name:
158
158
159
159
$ heroku create djangogirlsblog
160
160
161
161
> __Note__: Remember to replace `djangogirlsblog` with the name of your application on Heroku.
162
162
163
-
This automatically added the Heroku remote for our app to our repository. Now we can do a simple git push to deploy our application:
163
+
If you can't think of a name, you can instead run
164
+
165
+
$ heroku create
166
+
167
+
and Heroku will pick an unused name for you (probably something like `enigmatic-cove-2527`).
168
+
169
+
If you ever feel like changing the name of your Heroku application, you can do so at any time with this command (replace `the-new-name` with the new name you want to use):
170
+
171
+
$ heroku apps:rename the-new-name
172
+
173
+
> __Note__: Remember that after you change your application's name, you'll need to visit `[the new name].herokuapp.com` to see your site.
174
+
175
+
## Deploy to Heroku!
176
+
177
+
That was a lot of configuration and installing, right? But you only need to do that once! Now you can deploy!
178
+
179
+
When you ran `heroku create`, it automatically added the Heroku remote for our app to our repository. Now we can do a simple git push to deploy our application:
0 commit comments