Ensuring dependencies met for deployment on local.

This commit is contained in:
Samuel Clay 2022-01-19 10:48:11 -05:00
parent 0f27ba81e0
commit d0fdbde96b
4 changed files with 23 additions and 4 deletions

View file

@ -28,6 +28,14 @@
- never
- static
- name: Updating NewsBlur Deploy container
run_once: yes
connection: local
command: chdir=/srv/newsblur docker pull newsblur/newsblur_deploy
tags:
- never
- static
- name: Compressing JS/CSS assets
run_once: yes
connection: local
@ -46,6 +54,17 @@
- never
- static
- name: Ensure AWS dependencies installed
run_once: yes
connection: local
pip:
name:
- boto3
- botocore
tags:
- never
- static
- name: Uploading JS/CSS assets to S3
run_once: yes
connection: local
@ -65,7 +84,7 @@
git:
repo: https://github.com/samuelclay/NewsBlur.git
dest: /srv/newsblur/
version: master
version: pipeline
register: pulled
tags:
- static

View file

@ -21,4 +21,4 @@
git:
repo: https://github.com/samuelclay/NewsBlur.git
dest: /srv/newsblur/
version: master
version: pipeline

View file

@ -9,4 +9,4 @@ RUN npm -g install yuglify
RUN npm -g install google-closure-compiler
WORKDIR /srv/newsblur
CMD python manage.py collectstatic --no-input --clear -v 1 -l
CMD python manage.py collectstatic --no-input --clear -v 3 -l

View file

@ -26,7 +26,7 @@ DEBUG = False
# `./manage.py collectstatic` first. Turn this on for development so you can see
# changes in your JS/CSS.
DEBUG_ASSETS = False # Make sure to run `./manage.py collectstatic` first
DEBUG_ASSETS = True
# DEBUG_ASSETS = True
# DEBUG_QUERIES controls the output of the database query logs. Can be rather verbose
# but is useful to catch slow running queries. A summary is also useful in cutting