replaced ~ with more reliable data

This commit is contained in:
rene
2022-03-24 17:57:11 +01:00
parent 267995057b
commit f9bd653391
2 changed files with 16 additions and 16 deletions

View File

@@ -12,10 +12,10 @@
- name: Bundle install
shell: |
~/.rbenv/shims/bundle config set --local deployment 'true' && \
~/.rbenv/shims/bundle config set --local without 'test' && \
~/.rbenv/shims/bundle config set --local with 'development' && \
~/.rbenv/shims/bundle install -j$(getconf _NPROCESSORS_ONLN)
{{ mastodon_home }}/.rbenv/shims/bundle config set --local deployment 'true' && \
{{ mastodon_home }}/.rbenv/shims/bundle config set --local without 'test' && \
{{ mastodon_home }}/.rbenv/shims/bundle config set --local with 'development' && \
{{ mastodon_home }}/.rbenv/shims/bundle install -j$(getconf _NPROCESSORS_ONLN)
args:
chdir: "{{ mastodon_home }}/{{ mastodon_path }}"
@@ -35,13 +35,13 @@
register: production_config
- name: Migrate database
shell: "RAILS_ENV=production ~/.rbenv/shims/bundle exec rails db:migrate"
shell: "RAILS_ENV=production {{ mastodon_home }}/.rbenv/shims/bundle exec rails db:migrate"
args:
chdir: "{{ mastodon_home }}/{{ mastodon_path }}"
when: production_config.stat.exists
- name: Precompile assets
shell: "RAILS_ENV=production ~/.rbenv/shims/bundle exec rails assets:precompile"
shell: "RAILS_ENV=production {{ mastodon_home }}/.rbenv/shims/bundle exec rails assets:precompile"
args:
chdir: "{{ mastodon_home }}/{{ mastodon_path }}"
when: production_config.stat.exists