|
@@ -2,7 +2,7 @@
|
|
|
- name: Dependencies installed
|
|
|
# We install xmlsec and cairocffi using pkg because python-Levenshtein is tricky to install on FreeBSD
|
|
|
community.general.pkgng:
|
|
|
- name: git,py37-pip,vim-console,tmux,fish,direnv,jpeg-turbo,tiff,webp,lcms2,freetype2,syncthing,yarn-node14,redis,cairo,pango,gmake,libxml2,libxslt,postgresql12-client,py37-xmlsec,py37-cairocffi
|
|
|
+ name: git,py37-pip,vim-console,tmux,fish,direnv,jpeg-turbo,tiff,webp,lcms2,freetype2,syncthing,yarn-node14,redis,cairo,pango,gmake,libxml2,libxslt,postgresql12-client,py37-xmlsec,py37-cairocffi,py37-sqlite3
|
|
|
state: latest
|
|
|
|
|
|
- name: Redis enabled
|
|
@@ -75,6 +75,7 @@
|
|
|
dest: /usr/local/src/fifteen5
|
|
|
accept_hostkey: yes
|
|
|
update: yes
|
|
|
+ ignore_errors: true
|
|
|
tags:
|
|
|
- deploy
|
|
|
|
|
@@ -84,6 +85,12 @@
|
|
|
dest: /usr/local/src/fifteen5/.stignore
|
|
|
mode: 0775
|
|
|
|
|
|
+- name: Syncthing running as root
|
|
|
+ shell:
|
|
|
+ cmd: 'sed -i -e ''/^: ${syncthing_user/s/"syncthing"/"root"/'' /usr/local/etc/rc.d/syncthing'
|
|
|
+ warn: false
|
|
|
+ notify: Syncthing restarted
|
|
|
+
|
|
|
- name: Environment file installed
|
|
|
template:
|
|
|
src: envrc.j2
|
|
@@ -96,6 +103,8 @@
|
|
|
shell:
|
|
|
cmd: direnv allow
|
|
|
chdir: /usr/local/src/fifteen5
|
|
|
+ tags:
|
|
|
+ - deploy
|
|
|
|
|
|
- name: 15Five requirements up to date
|
|
|
pip:
|
|
@@ -114,6 +123,7 @@
|
|
|
- pgcli
|
|
|
- ipython
|
|
|
- git+git://github.com/sureapp/sqlformatter
|
|
|
+ - python-json-logger
|
|
|
executable: pip
|
|
|
tags:
|
|
|
- deploy
|
|
@@ -124,7 +134,7 @@
|
|
|
tags:
|
|
|
- deploy
|
|
|
|
|
|
-- name: 15Five supervisor file installed
|
|
|
+- name: 15Five BE supervisor file installed
|
|
|
copy:
|
|
|
src: fifteen5-supervisor.conf
|
|
|
dest: /usr/local/etc/supervisor/conf.d/
|
|
@@ -132,14 +142,24 @@
|
|
|
mode: 0644
|
|
|
notify: Supervisor restarted
|
|
|
|
|
|
+- name: 15Five FE supervisor file installed
|
|
|
+ copy:
|
|
|
+ src: fifteen5-fe-supervisor.conf
|
|
|
+ dest: /usr/local/etc/supervisor/conf.d/
|
|
|
+ owner: root
|
|
|
+ mode: 0644
|
|
|
+ notify: Supervisor restarted
|
|
|
+
|
|
|
- name: 15Five frontend files generated and copied
|
|
|
command: bash -lc "direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn && direnv exec /usr/local/src/fifteen5 /usr/local/bin/yarn build && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 manage.py collectstatic --no-input"
|
|
|
args:
|
|
|
chdir: "/usr/local/src/fifteen5"
|
|
|
tags:
|
|
|
- deploy
|
|
|
+ - never
|
|
|
|
|
|
- name: 15Five reset database
|
|
|
command: bash -lc "RESET_DB=True direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 /usr/local/src/fifteen5/manage.py run_local_scripts && direnv exec /usr/local/src/fifteen5 /usr/local/bin/python3.7 /usr/local/src/fifteen5/manage.py clearsessions"
|
|
|
tags:
|
|
|
- db-refresh
|
|
|
+ - never
|