forked from wallabag/docker
added new dependencies and added redis support
somehow there is a problem with the parameters.yml and environment variables. ansible templates are now used. database migration is still a big problem.
This commit is contained in:
@ -21,10 +21,18 @@
|
||||
path={{ item }}
|
||||
state=directory
|
||||
with_items:
|
||||
- /var/www/wallabag/data/db
|
||||
- /var/www/wallabag/app
|
||||
- /var/www/wallabag/app/config
|
||||
- /var/www/wallabag/data
|
||||
- /var/www/wallabag/data/assets
|
||||
- /var/www/wallabag/data/db
|
||||
notify: chown dir
|
||||
|
||||
- name: write parameters.yml
|
||||
template:
|
||||
src=templates/parameters.yml.j2
|
||||
dest=/var/www/wallabag/app/config/parameters.yml
|
||||
|
||||
- stat:
|
||||
path=/var/www/wallabag/data/db/wallabag.sqlite
|
||||
register: wallabag_sqlite_db
|
||||
@ -114,6 +122,12 @@
|
||||
chdir: /var/www/wallabag
|
||||
notify: chown dir
|
||||
|
||||
- name: run migration
|
||||
shell: php bin/console doctrine:migrations:migrate --env=prod
|
||||
args:
|
||||
chdir: /var/www/wallabag
|
||||
notify: chown dir
|
||||
|
||||
- name: chown dir
|
||||
file:
|
||||
path=/var/www/wallabag
|
||||
|
||||
Reference in New Issue
Block a user