Skip to content

Commit

Permalink
Symlink cleaning before composer install
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed Jul 11, 2016
1 parent 5d21bb7 commit 0cba60e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion salt/journal/init.sls
Expand Up @@ -75,15 +75,21 @@ var-directory:
- require:
- file: var-directory

web-assets-symlink-cleaning:
cmd.run:
- name: rm -f web/assets
- cwd: /srv/journal/

composer-install:
cmd.run:
- name: composer1.0 --no-interaction install
- cwd: /srv/journal/
- user: {{ pillar.elife.deploy_user.username }}
# to correctly writing into var/
# to correctly write into var/
- umask: 002
- require:
- file: config-file
- cmd: web-assets-symlink-cleaning
- cmd: var-directory

puli-publish-install:
Expand Down

0 comments on commit 0cba60e

Please sign in to comment.