瀏覽代碼

Adding Heroku Support

David Ray 8 年之前
父節點
當前提交
d2727e9318
共有 3 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      Procfile
  2. 2 0
      readme.md
  3. 5 0
      requirements.txt

+ 1 - 0
Procfile

@@ -1 +1,2 @@
+release: yes "yes" | python manage.py migrate
 web: uwsgi --http :$PORT --module bakerydemo.wsgi --master --offload-threads 1

+ 2 - 0
readme.md

@@ -1,3 +1,5 @@
+[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/wagtail/bakerydemo)
+
 Wagtail demo project
 =======================
 

+ 5 - 0
requirements.txt

@@ -3,3 +3,8 @@ elasticsearch
 wagtail
 wagtailfontawesome
 Pillow
+
+# Dependencies for Heroku deployment
+dj-database-url==0.3.0
+whitenoise>=3.1,<4.0
+uwsgi>=2.0,<2.1