feat: add asset precompile
This commit is contained in:
@@ -27,7 +27,15 @@
|
||||
remote_user: mastodon
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
bash -lic "yarn install --pure-lockfile"
|
||||
bash -lic "yarn install --frozen-lockfile"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
changed_when: true
|
||||
|
||||
- name: Precompile assets
|
||||
remote_user: mastodon
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
bash -lic "RAILS_ENV=production bundle exec rails assets:precompile"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
changed_when: true
|
||||
|
||||
@@ -53,9 +61,10 @@
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: 0644
|
||||
loop: &mastodon_services
|
||||
loop:
|
||||
- "mastodon-sidekiq.service"
|
||||
- "mastodon-streaming.service"
|
||||
- "mastodon-streaming@.service"
|
||||
- "mastodon-web.service"
|
||||
|
||||
- name: Run services
|
||||
@@ -64,4 +73,7 @@
|
||||
daemon_reload: true
|
||||
state: started
|
||||
enabled: true
|
||||
loop: *mastodon_services
|
||||
loop:
|
||||
- "mastodon-sidekiq.service"
|
||||
- "mastodon-streaming@4000.service"
|
||||
- "mastodon-web.service"
|
||||
|
Reference in New Issue
Block a user