You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
symfony_project_github_oauth_token: Auth token for github rate limits
93
94
symfony_project_console_opts: ''
94
95
symfony_project_parameters_file: parameters.yml # optional fixed parameters file in shared
95
96
symfony_project_cache_command: cache:warmup
@@ -127,7 +128,8 @@ If you need any more tasks and stuff in your deployment, you now have the option
127
128
In my projects there's often e.g. a gulp task that has to be started before finishing the release. You're also free to create more folders yourself or do whatever you need.
128
129
As an additional goodie, you can use the internal dynamically created facts from main role:
129
130
130
-
```
131
+
```yaml
132
+
---
131
133
symfony_project_release # release timestamp
132
134
symfony_current_release # release name
133
135
symfony_current_release_dir # fully qualified path to release
@@ -136,7 +138,8 @@ As an additional goodie, you can use the internal dynamically created facts from
136
138
```
137
139
possible hooks:
138
140
139
-
```
141
+
```yaml
142
+
---
140
143
symfony_project_post_folder_creation_tasks: task hook after folder creation
141
144
symfony_project_pre_cache_warmup_tasks: after cache warmup
142
145
symfony_project_pre_live_switch_tasks: before live symlink is switched
The "hooks" dir should be in your deployment project as a subfolder. I'd recommend to use this name as a convention. Also it's convinient to use the name of the hook task as a yml name.
152
155
156
+
## hook examples
157
+
These examples can be found in the package's hooks dir.
158
+
159
+
### php-fpm process restart
160
+
E.g. restart php-fpm after successfully finishing deployment.
161
+
This is much easier to maintain for different environments.
The deployment contains a basic test, executed by travis. If you want to locally test the role, have a look into ```.travis.yml``` for the exceution statements and (maybe) remove the ```geerlingguy.php ``` from ```tests/test.yml``` if you have a local php executable (needed for composer install and symfony console scripts).
192
+
The deployment contains a basic test, executed by travis. If you want to locally test the role, have a look into ```.travis.yml``` for the exceution statements. Make sure you have a local php executable (needed for composer install and symfony console scripts).
193
+
Add a file ```ansible.cfg```to your deployment project folder with contents:
0 commit comments