@@ -20,6 +20,7 @@ Optional variables
20
20
- ` loaddata ` : Set to ` true ` in order to load data from ` conf.data ` .
21
21
- ` flush ` : Set to ` true ` in order to flush data before ` loaddata ` . Depends on ` loaddata ` variable to be ` true ` .
22
22
- ` newrelic ` : New Relic license key. Omit to skip New Relic. Recommended to add a default in playbook.
23
+ - ` exclude ` : Additional pattern to exclude from sync, eg. ` media/ ` .
23
24
24
25
Required Configuration variables
25
26
--------------------------------
@@ -52,6 +53,7 @@ Other default variables
52
53
- ` django_settings ` : The Django settings module (.py) to run manage.py from, default: ` settings_live ` .
53
54
- ` plesk_server_group ` : Plesk server group, default: ` psaserv ` .
54
55
- ` plesk_account_group ` : Plesk account group, default: ` psacln ` .
56
+ - ` sync_opts ` : Additional options for rsync. Default: exclude ` .* ` .
55
57
56
58
Playbook examples
57
59
-----------------
@@ -96,69 +98,72 @@ Task description
96
98
8 . Open ownership
97
99
98
100
Open the target directory ownership to allow file copy.
101
+
102
+ 9 . Build sync options
99
103
100
- 9 . Sync files
104
+ Combine the default ` sync_opts ` variable with the ` exclude ` option.
101
105
102
- Syncs files to target directory.
106
+ 10 . Sync files
103
107
104
- : warning : Make sure that you have synced back any user uploaded files in ` media ` with manual ` rsync ` .
108
+ Syncs files to target directory.
105
109
106
- 10 . Upgrade pip
110
+ :warning : Make sure that you have synced back user uploaded files in ` media ` with manual ` rsync ` or use ` exclude ` .
111
+
112
+ 11 . Upgrade pip
107
113
108
114
Upgrades pip, setup, wheel.
109
115
110
- 11 . Install pip requirements
116
+ 12 . Install pip requirements
111
117
112
118
Install ` requirements.txt ` in virtualenv.
113
119
114
- 12 . Set Django admin executable
120
+ 13 . Set Django admin executable
115
121
116
122
Auxiliary task which sets a variable with the Django admin executable.
117
123
118
- 13 . Set Django admin settings
124
+ 14 . Set Django admin settings
119
125
120
126
Auxiliary task which sets a variable with the custom settings file (default ` django_settings ` variable).
121
127
122
- 14 . Migrate
128
+ 15 . Migrate
123
129
124
130
Runs migrations.
125
131
126
- 15 . Flush data
132
+ 16 . Flush data
127
133
128
134
Flushes data if ` loaddata ` and ` flush ` are both true.
129
135
130
- 16 . Load data
136
+ 17 . Load data
131
137
132
138
Loads data if ` loaddata ` is true.
133
139
134
- 17 . Collect static
140
+ 18 . Collect static
135
141
136
142
Runs collect static.
137
143
138
- 18 . Compile messages
144
+ 19 . Compile messages
139
145
140
146
Compiles i18n messages if ` compile_msgs ` is true.
141
147
142
- 19 . Clear cache
148
+ 20 . Clear cache
143
149
144
150
Clears cache if ` memcached ` is true.
145
151
146
- 20 . Post deployment script
152
+ 21 . Post deployment script
147
153
148
154
Runs an optional ` post_script ` .
149
155
150
- 21 . Close ownership to Plesk account group
156
+ 22 . Close ownership to Plesk account group
151
157
152
158
Reset target directory ownership to the appropriate Plesk permissions.
153
159
154
- 22 . Close ownership to Plesk server group
160
+ 23 . Close ownership to Plesk server group
155
161
156
162
Reset target directory ownership to the appropriate Plesk permissions.
157
163
158
- 23 . Configure Apache
164
+ 24 . Configure Apache
159
165
160
166
Configure Apache to execute the wsgi script using the provided template file.
161
167
Only executes if a ` domain_name ` is provided.
162
168
If the configuration changes, causes Plesk to reconfigure the domain in the end (notifies handler).
163
169
If the configuration changes, causes Apache to restart in the end (notifies handler).
164
-
0 commit comments