質問編集履歴
1
git push時の表示、フォルダ構成を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
SECRET_KEY = ***
|
40
40
|
|
41
|
-
ALLOWED_HOSTS = []
|
41
|
+
ALLOWED_HOSTS = ['*']
|
42
42
|
|
43
43
|
|
44
44
|
# Application definition
|
@@ -146,6 +146,40 @@
|
|
146
146
|
|
147
147
|
application = get_wsgi_application()
|
148
148
|
```
|
149
|
+
git push heroku master
|
150
|
+
```
|
151
|
+
(django2) shimizushunyuunoMacBook-Pro:project5 shimizushunyuu$ git push heroku master
|
152
|
+
Enumerating objects: 7, done.
|
153
|
+
Counting objects: 100% (7/7), done.
|
154
|
+
Delta compression using up to 4 threads
|
155
|
+
Compressing objects: 100% (4/4), done.
|
156
|
+
Writing objects: 100% (4/4), 349 bytes | 349.00 KiB/s, done.
|
157
|
+
Total 4 (delta 3), reused 0 (delta 0)
|
158
|
+
remote: Compressing source files... done.
|
159
|
+
remote: Building source:
|
160
|
+
remote:
|
161
|
+
remote: -----> Python app detected
|
162
|
+
remote: -----> Installing requirements with pip
|
163
|
+
remote:
|
164
|
+
remote: -----> $ python manage.py collectstatic --noinput
|
165
|
+
remote: 222 static files copied to '/tmp/build_81a3b3c79381c655da2c216eda585d9b/staticfiles', 658 post-processed.
|
166
|
+
remote:
|
167
|
+
remote: -----> Discovering process types
|
168
|
+
remote: Procfile declares types -> web
|
169
|
+
remote:
|
170
|
+
remote: -----> Compressing...
|
171
|
+
remote: Done: 101.9M
|
172
|
+
remote: -----> Launching...
|
173
|
+
remote: Released v18
|
174
|
+
remote: https://shunka-blog.herokuapp.com/ deployed to Heroku
|
175
|
+
remote:
|
176
|
+
remote: Verifying deploy... done.
|
177
|
+
To https://git.heroku.com/shunka-blog.git
|
178
|
+
50d10c3..2a9623c master -> master
|
179
|
+
|
180
|
+
```
|
181
|
+
フォルダ構成
|
182
|
+

|
149
183
|
### 試したこと
|
150
184
|
|
151
185
|
デプロイ自体はcollectstatics含め問題無く完了します。試しにDEBUG=Trueにてデプロイして見たところ、問題なく表示されましたので、静的ファイル関連の問題だと思っています。
|