build admin page (#22)
Fix the issue with admin page. Also, I know we got that discussion already for cryptpad, but I removed npm package as it is already installed with nodejs even on bookworm. Otherwise I get an error as it is trying to install`npm=9.2.0` whereas with nodejs you get `npm=10.5.0` Reviewed-on: #22 Reviewed-by: muppeth <muppeth@no-reply@disroot.org> Co-authored-by: meaz <meaz@disroot.org> Co-committed-by: meaz <meaz@disroot.org>
This commit is contained in:
parent
26e8c2d3f7
commit
62a7145f3a
2 changed files with 11 additions and 1 deletions
|
@ -54,9 +54,10 @@ etherpad_nodejs_version: '21'
|
|||
etherpad_apt:
|
||||
- curl
|
||||
- nodejs
|
||||
- npm
|
||||
- git
|
||||
|
||||
etherpad_admin_page: 'true' # set to something else if you don't want to build admin page
|
||||
|
||||
etherpad_plugins_list:
|
||||
ep_adminpads2: enabled
|
||||
ep_comments_page: enabled
|
||||
|
|
|
@ -7,3 +7,12 @@
|
|||
chdir: "{{ etherpad_app_dir }}/app"
|
||||
become: yes
|
||||
become_user: "{{ etherpad_username }}"
|
||||
|
||||
- name: '[INSTALL] - Build admin pages with pnpm'
|
||||
shell:
|
||||
cmd: pnpm run build
|
||||
args:
|
||||
chdir: "{{ etherpad_app_dir }}/app/admin"
|
||||
become: yes
|
||||
become_user: "{{ etherpad_username }}"
|
||||
when: etherpad_admin_page == "true"
|
Loading…
Reference in a new issue