mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 22:38:31 +02:00
Fix Boussole initial compile and watcher issues
See merge request tildes/tildes!163
This commit is contained in:
18
ansible/roles/boussole/files/requirements.txt
Normal file
18
ansible/roles/boussole/files/requirements.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
# Freeze Boussole otherwise the watcher doesn't work
|
||||
# https://github.com/sveetch/boussole/issues/48
|
||||
|
||||
# Frozen requirement versions from '2.1.2' installation
|
||||
boussole==2.1.2
|
||||
click==8.1.7
|
||||
colorama==0.4.6
|
||||
colorlog==6.7.0
|
||||
flake8==6.1.0
|
||||
libsass==0.22.0
|
||||
livereload==2.6.3
|
||||
pyaml==23.9.5
|
||||
pytest==7.4.2
|
||||
Sphinx==7.2.5
|
||||
sphinx-rtd-theme==1.3.0
|
||||
tox==4.11.3
|
||||
twine==4.0.2
|
||||
watchdog==3.0.0
|
||||
@@ -1,9 +1,22 @@
|
||||
---
|
||||
- name: Create venv and install boussole with pip
|
||||
- name: Ensure boussole venv directory exists
|
||||
file:
|
||||
path: "{{ boussole_venv_dir }}"
|
||||
state: "directory"
|
||||
|
||||
- name: Create boussole requirements.txt file
|
||||
copy:
|
||||
src: "requirements.txt"
|
||||
dest: "{{ boussole_venv_dir }}/requirements.txt"
|
||||
owner: "{{ app_username }}"
|
||||
group: "{{ app_username }}"
|
||||
mode: 0644
|
||||
|
||||
- name: Create boussole venv and install packages
|
||||
pip:
|
||||
virtualenv: "{{ boussole_venv_dir }}"
|
||||
virtualenv_command: python{{ python_version }} -m venv
|
||||
name: boussole
|
||||
requirements: "{{ boussole_venv_dir }}/requirements.txt"
|
||||
|
||||
- name: Create systemd service file
|
||||
template:
|
||||
@@ -35,6 +48,7 @@
|
||||
register: compiled_css_files
|
||||
|
||||
- name: Run boussole manually if no compiled CSS exists yet
|
||||
become_user: "{{ app_username }}"
|
||||
command:
|
||||
chdir: "{{ app_dir }}"
|
||||
cmd: "{{ boussole_venv_dir }}/bin/boussole compile --backend=yaml --config=boussole.yaml"
|
||||
|
||||
Reference in New Issue
Block a user