Explorar el Código

brek out heroku specific requirements and install via Procfile release action

David Ray hace 8 años
padre
commit
754122a8fb
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 1 0
      Procfile
  2. 0 6
      requirements.txt
  3. 5 0
      requirements_heroku.txt

+ 1 - 0
Procfile

@@ -1,2 +1,3 @@
+release: pip install -r requirements_heroku.txt
 release: yes "yes" | python manage.py migrate
 web: gunicorn bakerydemo.heroku_wsgi --log-file -

+ 0 - 6
requirements.txt

@@ -3,9 +3,3 @@ elasticsearch
 wagtail
 wagtailfontawesome
 Pillow
-
-# Dependencies for Heroku deployment
-dj-database-url==0.4.1
-whitenoise==3.2.2
-gunicorn==19.6.0
-psycopg2==2.6.2

+ 5 - 0
requirements_heroku.txt

@@ -0,0 +1,5 @@
+# Additional dependencies for Heroku deployment
+dj-database-url
+whitenoise
+gunicorn
+psycopg2