Skip to content

Commit

Permalink
Fixes #31 - Also reworked includes
Browse files Browse the repository at this point in the history
  • Loading branch information
maschmann committed Nov 12, 2015
1 parent f345227 commit 596faad
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## v2.0
## v2.0.1-alpha

* bugfixes for parameters file
* bugfix for migrations (@vviippola)
* renamed includes to mirror their order

## v2.0.0-alpha
reworked and more flexible configuration

* creates release version in a file per release
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tasks/config.yml → tasks/10-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
register: symfony_parameters

- name: Create symlink for parameters file from shared directory.
file: state=link src={{symfony_project_root}}/shared/app/config/{{symfony_project_parameters_file}} path={{symfony_current_release_dir}}/app/config/{{symfony_project_parameters_file}} creates={{symfony_current_release_dir}}/app/config/{{symfony_project_parameters_file}}
file: state=link src={{symfony_project_root}}/shared/app/config/{{symfony_project_parameters_file}} path={{symfony_current_release_dir}}/app/config/{{symfony_project_parameters_file}}
when: symfony_parameters.stat.exists
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# tasks file for symfony2
- include: facts.yml
- include: 00-facts.yml

- name: Create/prepare necessary directories for release and shared data.
file: state=directory path={{item.path}}
Expand All @@ -13,33 +13,33 @@
- name: Pull sources from the repository.
git: repo={{symfony_project_repo}} dest={{symfony_current_release_dir}} version={{symfony_project_branch}} accept_hostkey=yes depth={{symfony_project_git_clone_depth}}

# will be replaced with symlink
- name: Ensure logs directory is not present.
file: state=absent path="{{symfony_current_release_dir}}/app/logs"

# read project's composer.json and store output
- name: Read composer.json
shell: cat {{symfony_current_release_dir}}/composer.json
register: composer_content

- include: "{{ symfony_project_post_folder_creation_tasks | default('empty.yml') }}"

# will be replaced with symlink
- name: Ensure logs directory is not present.
file: state=absent path="{{symfony_current_release_dir}}/app/logs"

- name: Create symlinks to shared directories.
file: state=link src="{{symfony_shared_dir}}{{item.src}}" path="{{symfony_current_release_dir}}{{item.path}}"
with_items:
- { src: "/app/logs", path: "/app/logs" }

- include: config.yml
- include: 10-config.yml

- include: composer.yml
- include: 20-composer.yml

- include: "{{ symfony_project_pre_cache_warmup_tasks | default('empty.yml') }}"

- include: cache.yml
- include: 30-cache.yml

- include: assets.yml
- include: 40-assets.yml

- include: migrations.yml
- include: 50-migrations.yml

- name: create release file
copy: content="{{symfony_current_release}}" dest="{{symfony_current_release_dir}}/RELEASE" mode=644
Expand All @@ -51,4 +51,4 @@

- include: "{{ symfony_project_post_live_switch_tasks | default('empty.yml') }}"

- include: clean_releases.yml
- include: 60-clean_releases.yml

0 comments on commit 596faad

Please sign in to comment.