Browse Source

Use db:migrate for installation

master
Benjamin Neff 7 years ago
parent
commit
7cfbada8a5
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      diaspora/install.sls
  2. +1
    -1
      diaspora/map.jinja

+ 1
- 1
diaspora/install.sls View File

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

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

Loading…
Cancel
Save