Added django-contrib-comments
This commit is contained in:
parent
f262c526ce
commit
d799a05c78
7 changed files with 51 additions and 18 deletions
10
Makefile
10
Makefile
|
@ -38,18 +38,20 @@ apply-migrations: migrations migrate
|
||||||
setup:
|
setup:
|
||||||
docker-compose exec web ./manage.py migrate
|
docker-compose exec web ./manage.py migrate
|
||||||
docker-compose exec web ./manage.py createsuperuser --username admin --email $(EMAIL) --noinput
|
docker-compose exec web ./manage.py createsuperuser --username admin --email $(EMAIL) --noinput
|
||||||
docker-compose exec web ./manage.py compress
|
|
||||||
docker-compose exec web ./manage.py collectstatic --noinput
|
|
||||||
|
|
||||||
release:
|
rebuild:
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
sudo docker-compose build web
|
docker-compose build web --no-cache
|
||||||
docker-compose stop web
|
docker-compose stop web
|
||||||
docker-compose kill web
|
docker-compose kill web
|
||||||
docker-compose up -d web
|
docker-compose up -d web
|
||||||
|
|
||||||
|
compress:
|
||||||
docker-compose exec web ./manage.py collectstatic --noinput -i media
|
docker-compose exec web ./manage.py collectstatic --noinput -i media
|
||||||
docker-compose exec web ./manage.py compress
|
docker-compose exec web ./manage.py compress
|
||||||
|
|
||||||
|
release: rebuild compress
|
||||||
|
|
||||||
reindex:
|
reindex:
|
||||||
docker-compose exec web ./manage.py update_index
|
docker-compose exec web ./manage.py update_index
|
||||||
|
|
||||||
|
|
1
Pipfile
1
Pipfile
|
@ -21,6 +21,7 @@ django-el-pagination = "*"
|
||||||
django-libsass = "*"
|
django-libsass = "*"
|
||||||
django-redis = "*"
|
django-redis = "*"
|
||||||
django-social-share = "*"
|
django-social-share = "*"
|
||||||
|
django-contrib-comments = "*"
|
||||||
elasticsearch = ">=5.0.0,<6.0.0"
|
elasticsearch = ">=5.0.0,<6.0.0"
|
||||||
guess_language-spirit = "*"
|
guess_language-spirit = "*"
|
||||||
gunicorn = "*"
|
gunicorn = "*"
|
||||||
|
|
|
@ -1,9 +1,42 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Install packages based on package.json.
|
- name: Install JavaScript Yarn
|
||||||
|
become: true
|
||||||
npm:
|
npm:
|
||||||
|
name: yarn
|
||||||
|
global: true
|
||||||
|
|
||||||
|
- name: Link the Yarn executable
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
src: "/usr/local/lib/npm/bin/yarn"
|
||||||
|
dest: "/usr/local/bin/yarn"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Install JavaScript Grunt
|
||||||
|
become: true
|
||||||
|
yarn:
|
||||||
|
name: grunt-cli
|
||||||
|
global: true
|
||||||
|
|
||||||
|
- name: Link the Grunt executable
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
src: "/usr/local/lib/npm/bin/grunt"
|
||||||
|
dest: "/usr/local/bin/grunt"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Install JavaScript packages with Yarn
|
||||||
|
yarn:
|
||||||
path: "{{ release_dir }}"
|
path: "{{ release_dir }}"
|
||||||
|
|
||||||
- name: Install packages based on bower.json.
|
- name: Link the old bower component to libs
|
||||||
bower:
|
file:
|
||||||
path: "{{ release_dir }}"
|
src: "{{ release_dir }}/node_modules/@bower_components"
|
||||||
|
dest: "{{ release_dir }}/publichealth/static/libs"
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: Compile JavaScript sources with Grunt
|
||||||
|
shell: grunt
|
||||||
|
args:
|
||||||
|
chdir: "{{ release_dir }}"
|
||||||
|
|
|
@ -31,9 +31,8 @@
|
||||||
args:
|
args:
|
||||||
chdir: "{{ release_dir }}"
|
chdir: "{{ release_dir }}"
|
||||||
|
|
||||||
|
- name: Prepare compress frontend
|
||||||
- name: Finish setup of Wagtail site
|
shell: make compress
|
||||||
shell: make setup
|
|
||||||
args:
|
args:
|
||||||
chdir: "{{ release_dir }}"
|
chdir: "{{ release_dir }}"
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,10 @@
|
||||||
- include: install.yaml
|
- include: install.yaml
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- docker
|
|
||||||
- setup
|
|
||||||
|
|
||||||
- include: frontend.yaml
|
- include: frontend.yaml
|
||||||
tags:
|
tags:
|
||||||
- frontend
|
- frontend
|
||||||
- nodejs
|
|
||||||
- setup
|
|
||||||
|
|
||||||
- include: release.yaml
|
- include: release.yaml
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
src: docker-compose.j2
|
src: docker-compose.j2
|
||||||
dest: "{{ release_dir }}/docker-compose.yml"
|
dest: "{{ release_dir }}/docker-compose.yml"
|
||||||
|
|
||||||
- name: Update Docker site
|
- name: Rebuild and release Wagtail site
|
||||||
debug:
|
shell: make release
|
||||||
msg: "Please run 'make release' in {{ release_dir }} to finish updating the site"
|
args:
|
||||||
|
chdir: "{{ release_dir }}"
|
||||||
|
|
|
@ -22,6 +22,7 @@ django-crispy-forms==1.9.0
|
||||||
django-el-pagination==3.3.0
|
django-el-pagination==3.3.0
|
||||||
django-libsass==0.8
|
django-libsass==0.8
|
||||||
django-social-share==1.4.0
|
django-social-share==1.4.0
|
||||||
|
django-contrib-comments==1.9.2
|
||||||
libsass==0.20.0
|
libsass==0.20.0
|
||||||
Pillow==7.1.2
|
Pillow==7.1.2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue