浏览代码

Install gems

tags/v1.0.0
Benjamin Neff 7 年前
父节点
当前提交
a69bf9f96c
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. +1
    -0
      diaspora/defaults.yaml
  2. +19
    -0
      diaspora/install.sls

+ 1
- 0
diaspora/defaults.yaml 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存