Skip to content

Instantly share code, notes, and snippets.

@steveh
Created April 22, 2015 20:52
Show Gist options
  • Save steveh/95aad5a9158234f187b5 to your computer and use it in GitHub Desktop.
Save steveh/95aad5a9158234f187b5 to your computer and use it in GitHub Desktop.
- git: repo={{repo_url}}
version={{repo_version}}
dest=/srv/www/{{application}}/current
accept_hostkey=yes
update=yes
force=yes
sudo: yes
sudo_user: deploy
- template: src=config.local.php.j2 dest=/srv/www/{{application}}/current/app/config.local.php owner=deploy group=deploy mode=0644
- file: src=/srv/www/{{application}}/shared/logs
dest=/srv/www/{{application}}/current/app/logs
state=link
- file: path=/srv/www/{{application}}/current/public/plaques
owner=deploy
group=deploy
state=directory
mode=0777
- composer: command=install working_dir=/srv/www/{{application}}/current no_dev=no
sudo: yes
sudo_user: deploy
- command: /usr/bin/npm install chdir=/srv/www/{{application}}/current
sudo: yes
sudo_user: deploy
- command: /usr/local/bin/bower install chdir=/srv/www/{{application}}/current
sudo: yes
sudo_user: deploy
- command: /usr/local/bin/gulp build chdir=/srv/www/{{application}}/current
sudo: yes
sudo_user: deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment