Bläddra i källkod

Install gems

master
Benjamin Neff 7 år sedan
förälder
incheckning
a69bf9f96c
Inget konto är kopplat till bidragsgivarens mejladress
2 ändrade filer med 20 tillägg och 0 borttagningar
  1. +1
    -0
      diaspora/defaults.yaml
  2. +19
    -0
      diaspora/install.sls

+ 1
- 0
diaspora/defaults.yaml Visa fil

@@ -1,6 +1,7 @@
diaspora:
repository: git://github.com/diaspora/diaspora.git
version: master
environment: production
install_path: /srv/diaspora

ruby_version: 2.3.4

+ 19
- 0
diaspora/install.sls Visa fil

@@ -79,3 +79,22 @@ diaspora_git:
- user: {{ diaspora.user.username }}
- require:
- file: diaspora_install_directory

diaspora_rvm_ruby_version_alias:
cmd.run:
- name: rvm alias create $(cat {{ diaspora.install_path }}/.ruby-version) ruby-{{ diaspora.ruby_version }}
- runas: diaspora
- unless: rvm alias list | grep "$(cat {{ diaspora.install_path }}/.ruby-version) => ruby-{{ diaspora.ruby_version }}"
- require:
- git: diaspora_git

diaspora_bundle_install:
cmd.run:
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/bundle install --jobs $(nproc) --deployment --without test development --with {{ diaspora.database.type }}
- runas: diaspora
- cwd: {{ diaspora.install_path }}
- unless: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/bundle check
- env:
- RAILS_ENV: {{ diaspora.environment }}
- require:
- git: diaspora_git

Laddar…
Avbryt
Spara