mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Switching discover feeds search index to preserve prod.
This commit is contained in:
parent
fbe34c4c9e
commit
a49eaa1ad5
3 changed files with 13 additions and 11 deletions
|
@ -38,31 +38,32 @@
|
||||||
- never
|
- never
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Compressing JS/CSS assets
|
- name: Compressing JS/CSS assets
|
||||||
run_once: yes
|
run_once: yes
|
||||||
connection: local
|
connection: local
|
||||||
command: chdir=/srv/newsblur docker run --rm -v /srv/newsblur:/srv/newsblur newsblur/newsblur_deploy
|
command: chdir=/srv/newsblur docker run --rm -v /srv/newsblur:/srv/newsblur newsblur/newsblur_deploy
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Archive JS/CSS assets for uploading
|
- name: Archive JS/CSS assets for uploading
|
||||||
run_once: yes
|
run_once: yes
|
||||||
connection: local
|
connection: local
|
||||||
archive:
|
archive:
|
||||||
path: /srv/newsblur/static/
|
path: /srv/newsblur/static/
|
||||||
dest: /srv/newsblur/static.tgz
|
dest: /srv/newsblur/static.tgz
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Ensure AWS dependencies installed
|
- name: Ensure AWS dependencies installed
|
||||||
run_once: yes
|
run_once: yes
|
||||||
connection: local
|
connection: local
|
||||||
pip:
|
pip:
|
||||||
name:
|
name:
|
||||||
- boto3
|
- boto3
|
||||||
- botocore
|
- botocore
|
||||||
|
virtualenv: ~/.virtualenvs/newsblur
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
- static
|
- static
|
||||||
|
@ -82,10 +83,10 @@
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Downloading JS/CSS assets from S3
|
- name: Downloading JS/CSS assets from S3
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
amazon.aws.aws_s3:
|
amazon.aws.aws_s3:
|
||||||
bucket: newsblur-backups
|
bucket: newsblur-backups
|
||||||
object: /static_py3.tgz
|
object: /static_py3.tgz
|
||||||
|
@ -117,7 +118,7 @@
|
||||||
register: pulled
|
register: pulled
|
||||||
tags:
|
tags:
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Reload gunicorn due to no git upstream changes
|
- name: Reload gunicorn due to no git upstream changes
|
||||||
become: yes
|
become: yes
|
||||||
block:
|
block:
|
||||||
|
@ -132,7 +133,7 @@
|
||||||
command: "docker restart newsblur_web"
|
command: "docker restart newsblur_web"
|
||||||
tags:
|
tags:
|
||||||
- static
|
- static
|
||||||
|
|
||||||
- name: Start Consul
|
- name: Start Consul
|
||||||
become: yes
|
become: yes
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -12,4 +12,5 @@
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/samuelclay/NewsBlur.git
|
repo: https://github.com/samuelclay/NewsBlur.git
|
||||||
dest: /srv/newsblur/
|
dest: /srv/newsblur/
|
||||||
version: master
|
# version: master
|
||||||
|
version: discover
|
||||||
|
|
|
@ -492,7 +492,7 @@ class SearchStory:
|
||||||
|
|
||||||
class SearchFeed:
|
class SearchFeed:
|
||||||
_es_client = None
|
_es_client = None
|
||||||
name = "feeds"
|
name = "discover-feeds"
|
||||||
model = None
|
model = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Reference in a new issue