瀏覽代碼

Use db:migrate for installation

tags/v1.0.0
Benjamin Neff 7 年之前
父節點
當前提交
7cfbada8a5
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      diaspora/install.sls
  2. +1
    -1
      diaspora/map.jinja

+ 1
- 1
diaspora/install.sls 查看文件

@@ -137,7 +137,7 @@ diaspora_bundle_install:

diaspora_create_database:
cmd.run:
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:create db:schema:load
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:create db:migrate
- runas: {{ diaspora.user.username }}
- cwd: {{ diaspora.install_path }}
- onlyif: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rails runner "ActiveRecord::Base.connection" |& grep "database \"{{ diaspora.database.database }}\" does not exist (ActiveRecord::NoDatabaseError)"

+ 1
- 1
diaspora/map.jinja 查看文件

@@ -55,7 +55,7 @@
},
},
}, merge=salt['grains.filter_by']({
'Ubuntu': {
'Ubuntu': {
'dependencies' : [
'build-essential',
'git',

Loading…
取消
儲存