replaced ~ with more reliable data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user