Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtrias/ansible.symfony2.deploy
Ansible scripts to deploy a symfony2 app
https://github.com/gtrias/ansible.symfony2.deploy
Last synced: about 1 month ago
JSON representation
Ansible scripts to deploy a symfony2 app
- Host: GitHub
- URL: https://github.com/gtrias/ansible.symfony2.deploy
- Owner: gtrias
- License: mit
- Created: 2015-01-26T13:11:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T11:02:53.000Z (over 9 years ago)
- Last Synced: 2023-08-02T02:22:50.942Z (over 1 year ago)
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Symfony2
========Ansible role to easily deploy Symfony2 applications. It will clone a git repository, download and run composer install, and run assetic:dump when finished. The resulting directory structure is similar to what capifony creates:
```
project
releases
release
shared
web/uploads
app/config
app/logs
current -> symlink to latest deployed release
```Requirements
------------None
Role Variables
--------------```yaml
- vars:
symfony2_project_root: Path where application will be deployed on server.
symfony2_project_name: Name of project.
symfony2_project_repo: URL of git repository.
symfony2_project_release: Release number, can be numeric, we recommend to set it to release date/time, 20140327100911
symfony2_project_branch: git branch to deploy.
symfony2_project_php_path: /usr/local/php54/bin/php
symfony2_project_env: prod
symfony2_project_console_opts: ''
symfony2_project_composer_opts: '--no-dev --optimize-autoloader'
```Dependencies
------------None
Example Playbook
-------------------------Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
```yaml
- hosts: servers
roles:
- { role: symfony2.deploy, symfony2_project_root: /var/www/vhosts/example.com/, symfony2_project_name: demo, symfony2_project_branch: master, symfony2_project_release: 1 }
```License
-------MIT