1
0
mirror of https://github.com/wallabag/docker synced 2026-06-26 16:24:10 +00:00

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:
Marvin Steadfast
2016-10-05 12:57:15 +02:00
parent f66d2aeab0
commit 6a5ab7c126
5 changed files with 90 additions and 8 deletions
+15 -1
View File
@@ -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