Explorar el Código

Install gems

tags/v1.0.0
Benjamin Neff hace 7 años
padre
commit
a69bf9f96c
Ninguna cuenta vinculada a la dirección de correo electrónico del committer
Se han modificado 2 ficheros con 20 adiciones y 0 borrados
  1. +1
    -0
      diaspora/defaults.yaml
  2. +19
    -0
      diaspora/install.sls

+ 1
- 0
diaspora/defaults.yaml Ver fichero

@@ -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 Ver fichero

@@ -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

Cargando…
Cancelar
Guardar