Skip to content

Commit e24b5d7

Browse files
committed
Merge branch 'feature/minorfixes' into develop
2 parents 3728fff + 1867c1e commit e24b5d7

File tree

20 files changed

+356
-98
lines changed

20 files changed

+356
-98
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4+
.idea/
45

56
# C extensions
67
*.so

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ script:
7777
- yes | sudo ee site create site.hhvm.pagespeed11.in --w3tc --wpsubdomain --hhvm --pagespeed
7878
- yes | sudo ee site create site.hhvm.pagespeed12.in --wpfc --wpsubdomain --hhvm --pagespeed
7979

80+
- sudo ee site create site.localtest.me --php --mysql --html
81+
- sudo ee site create site1.localtest.me --php --mysql
82+
- sudo ee site create site2.localtest.me --mysql --html
83+
- sudo ee site create site3.localtest.me --php --html
84+
- sudo ee site create site4.localtest.me --wp --wpsubdomain
85+
- sudo ee site create site5.localtest.me --wp --wpsubdir --wpfc
86+
8087
- sudo ee debug --all
8188
- sudo ee debug --all=off
8289
- sudo ee debug site12.net

CHANGELOG.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
v 3.3.5 - Aug 26, 2015
2+
- Introduced new support of --force/-f in delete command of site
3+
- Removes database entry or nginx configuration of site from system
4+
- ee site delete example.com --force/-f
5+
- ee site delete example.com --force/-f --db/--files
6+
- Moved ~/.my.cnf to /etc/mysql/conf.d/my.cnf
7+
- Fixed MySQL credential issue
8+
- Fixed Bug in cache clean --all command
9+
- Improved 404 handling for static HTML sites #561
10+
- Improved cleanup action while site create command fail
11+
- Updated wpfc config #543
12+
- Improved ee sync command https://github.com/rtCamp/easyengine/issues/575#issuecomment-126293815
13+
- Bug Fix #486
14+
- Bug Fix #555
15+
- Updated man page
16+
- Fixed bug in ee update site to --wpredis
17+
- Fixed Autocompletion Issue #519
18+
- Fixed minor bug in update --password
19+
- Minor fix and improvements
20+
121
v 3.3.4 - Aug 12, 2015
222
- Bug Fix for https://github.com/rtCamp/easyengine/issues/598#issue-98354466
323

config/bash_completion.d/ee_auto.rc

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _ee_complete()
1111
# SETUP THE BASE LEVEL (everything after "ee")
1212
if [ $COMP_CWORD -eq 1 ]; then
1313
COMPREPLY=( $(compgen \
14-
-W "stack site debug clean secure import-slow-log log update sync info" \
14+
-W "stack site debug clean secure import-slow-log log update sync info --version --help --quiet" \
1515
-- $cur) )
1616

1717

@@ -22,7 +22,7 @@ _ee_complete()
2222
# HANDLE EVERYTHING AFTER THE SECOND LEVEL NAMESPACE
2323
"clean")
2424
COMPREPLY=( $(compgen \
25-
-W "--memcache --opcache --fastcgi --pagespeed --all" \
25+
-W "--memcache --opcache --fastcgi --pagespeed --redis --all" \
2626
-- $cur) )
2727
;;
2828

@@ -176,7 +176,7 @@ _ee_complete()
176176
;;
177177
"delete")
178178
COMPREPLY=( $(compgen \
179-
-W "--db --files --all --no-prompt" \
179+
-W "--db --files --all --no-prompt --force -f" \
180180
-- $cur) )
181181
;;
182182
"show")
@@ -214,10 +214,29 @@ _ee_complete()
214214
fi
215215

216216
case "$prev" in
217-
"--wp" | "--wpsubdir" | "--wpsubdomain")
217+
"--wp")
218218
if [ ${COMP_WORDS[1]} != "debug" ]; then
219219
if [ ${COMP_WORDS[2]} == "create" ]; then
220-
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --user --email --pass --wpredis"
220+
retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis"
221+
elif [ ${COMP_WORDS[2]} == "update" ]; then
222+
retlist="--wp --w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis"
223+
else
224+
retlist=""
225+
fi
226+
else
227+
retlist="--wp --wp=off --rewrite --rewrite=off -i --interactive"
228+
fi
229+
230+
ret="${retlist[@]/$prev}"
231+
COMPREPLY=( $(compgen \
232+
-W "$(echo $ret)" \
233+
-- $cur) )
234+
;;
235+
236+
"--wpsubdir" | "--wpsubdomain")
237+
if [ ${COMP_WORDS[1]} != "debug" ]; then
238+
if [ ${COMP_WORDS[2]} == "create" ]; then
239+
retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis"
221240
elif [ ${COMP_WORDS[2]} == "update" ]; then
222241
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis"
223242
else
@@ -233,10 +252,21 @@ _ee_complete()
233252
-- $cur) )
234253
;;
235254

236-
"--pagespeed" | "--hhvm" | "--wpredis" )
255+
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc" | "--wpsc" | "--wpsubdir" | "--wpsubdomain" | "--user" | "--pass" | "--email" | "--wp")
237256
if [ ${COMP_WORDS[2]} == "create" ]; then
238-
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis"
239-
elif [ ${COMP_WORDS[2]} == "update" ]; then
257+
retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis"
258+
else
259+
retlist=""
260+
fi
261+
262+
ret="${retlist[@]/$prev}"
263+
COMPREPLY=( $(compgen \
264+
-W "$(echo $ret)" \
265+
-- $cur) )
266+
;;
267+
268+
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc")
269+
if [ ${COMP_WORDS[2]} == "update" ]; then
240270
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --experimenal --wpredis"
241271
else
242272
retlist=""
@@ -276,8 +306,8 @@ _ee_complete()
276306
-- $cur) )
277307
;;
278308

279-
"--db" | "--files" )
280-
retlist="--db --files --all"
309+
"--db" | "--files" | "--force")
310+
retlist="--db --files --all --force"
281311
ret="${retlist[@]/$prev}"
282312
COMPREPLY=( $(compgen \
283313
-W "$(echo $ret)" \
@@ -286,9 +316,9 @@ _ee_complete()
286316

287317
"--all")
288318
if [ ${COMP_WORDS[1]} == "clean" ]; then
289-
retlist="--memcache --opcache --fastcgi"
319+
retlist="--memcache --opcache --fastcgi --redis"
290320
elif [ ${COMP_WORDS[2]} == "delete" ]; then
291-
retlist="--db --files"
321+
retlist="--db --files --force"
292322
elif [ ${COMP_WORDS[2]} == "update" ]; then
293323
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis"
294324
else
@@ -300,8 +330,8 @@ _ee_complete()
300330
-- $cur) )
301331
;;
302332

303-
"--memcache" | "--opcache" | "--fastcgi" | "--all")
304-
retlist="--memcache --opcache --fastcgi --all"
333+
"--memcache" | "--opcache" | "--fastcgi" | "--all" | "--redis" | "--pagespeed")
334+
retlist="--memcache --opcache --fastcgi --pagespeed --redis --all"
305335
ret="${retlist[@]/$prev}"
306336
COMPREPLY=( $(compgen \
307337
-W "$(echo $ret)" \

docs/ee.8

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
.TH ee 8 "EasyEngine (ee) version: 3.0" "Feb 2,2014" "EasyEngine"
1+
.TH ee 8 "EasyEngine (ee) version: 3.3.5" "Aug 11,2015" "EasyEngine"
22
.SH NAME
33
.B EasyEngine (ee)
44
\- Manage Nginx Based Websites.
55
.SH SYNOPSIS
6-
ee [ --version | --help | info | stack | site | debug | update ]
6+
ee [ --version | --help | info | stack | site | debug | update | clean | import_slow_log | log | secure | sync]
77
.TP
8-
ee stack [ install | remove | purge ] [ --web | --mail | --all | --nginx | --php | --mysql | --postfix | --adminer | --phpmyadmin | --wpcli | --utils ]
8+
ee stack [ install | remove | purge | migrate | upgrade] [ --web | --mail | --all | --nginx | --php | --mysql | --admin | --postfix | --mailscanner | --adminer | --redis | --hhvm | --phpmyadmin | --phpredisadmin | --wpcli | --utils ]
99
.TP
10-
ee stack [ status | start | stop | reload | restart ]
10+
ee stack [ status | start | stop | reload | restart ] [--all | --nginx | --php | --mysql | --devcot | --web | --postfix | --memcache | --redis]
1111
.TP
12-
ee site [ list | info | show | enable | disable | edit ] [ example.com ]
12+
ee site [ list | info | show | enable | disable | edit | cd | show ] [ example.com ]
1313
.TP
14-
ee site create example.com [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--basic | --wpsc | --w3tc | --wpfc]]
14+
ee site create example.com [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ]]
1515
.TP
16-
ee site update example.com [ --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--basic | --wpsc | --w3tc | --wpfc]]
16+
ee site update example.com [ --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ] [--password]]
1717
.TP
18-
ee site delete example.com [--db | --files | --all | --no-prompt ]
18+
ee site delete example.com [--db | --files | --all | --no-prompt | --force/-f ]
1919
.TP
2020
ee debug [ -i | --all=on/off |--nginx=on/off | --rewrite=on/off | --php=on/off | --fpm=on/off | --mysql=on/off ]
2121
.TP
@@ -46,43 +46,43 @@ Display easyengine (ee) help.
4646
.TP
4747
.B stack
4848
.TP
49-
.B install [ --all | --web | --mail | --nginx | --php | --mysql | --postfix | --adminer | --phpmyadmin | --wpcli | --utils ]
49+
.B install [ --all | --web | --mail | --nginx | --php | --mysql | --redis | --postfix | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils ]
5050
.br
5151
Install Nginx PHP5 MySQL Postfix stack Packages if not used with
5252
.br
5353
any options.Installs specific package if used with option.
5454
.TP
55-
.B remove [ --all | --web | --mail | --nginx | --php | --mysql | --postfix | --adminer | --phpmyadmin | --wpcli | --utils ]
55+
.B remove [ --all | --web | --mail | --nginx | --php | --mysql | --redis | --postfix | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils ]
5656
.br
5757
Remove Nginx PHP5 MySQL Postfix stack Packages if not used with
5858
.br
5959
any options. Remove specific package if used with option.
6060
.TP
61-
.B purge [ --all | --web | --mail | --nginx | --php | --mysql | --postfix | --adminer | --phpmyadmin | --wpcli | --utils ]
61+
.B purge [ --all | --web | --mail | --nginx | --php | --mysql | --redis | --postfix | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils ]
6262
.br
6363
Purge Nginx PHP5 MySQL Postfix stack Packages if not used with any
6464
.br
6565
options.Purge specific package if used with option.
6666
.TP
6767
.B status
6868
.br
69-
Display status of NGINX, PHP5-FPM, MySQL, Postfix services.
69+
Display status of NGINX, PHP5-FPM, MySQL, Postfix, Redis-Server services.
7070
.TP
7171
.B start
7272
.br
73-
Start services NGINX, PHP5-FPM, MySQL, Postfix.
73+
Start services NGINX, PHP5-FPM, MySQL, Postfix, Redis-Server.
7474
.TP
7575
.B stop
7676
.br
77-
Stop services NGINX, PHP5-FPM, MySQL, Postfix.
77+
Stop services NGINX, PHP5-FPM, MySQL, Postfix, Redis-Server.
7878
.TP
7979
.B reload
8080
.br
81-
Reload services NGINX, PHP5-FPM, MySQL, Postfix.
81+
Reload services NGINX, PHP5-FPM, MySQL, Postfix, Redis-Server.
8282
.TP
8383
.B restart
8484
.br
85-
Restart services NGINX, PHP5-FPM, MySQL, Postfix.
85+
Restart services NGINX, PHP5-FPM, MySQL, Postfix, Redis-Server.
8686
.TP
8787
.B site
8888
.br
@@ -129,19 +129,19 @@ Disable site by Destroying softlink with site file in
129129
.br
130130
Edit NGINX configuration of site.
131131
.TP
132-
.B create [ example.com ] [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--basic | --wpsc | --w3tc | --wpfc]]
132+
.B create [ example.com ] [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ]]
133133
.br
134134
Create new site according to given options. If no options provided
135135
.br
136136
create static site with html only.
137137
.TP
138-
.B update [ example.com ] [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--basic | --wpsc | --w3tc | --wpfc]]
138+
.B update [ example.com ] [ --html | --php | --mysql] [[--wp | --wpsubdir | --wpsubdomain ] [ --wpsc | --w3tc | --wpfc | --wpredis | --hhvm | --pagespeed ] [--password]]
139139
.br
140140
Update site configuration according to specified options.
141141
.TP
142-
.B delete [ example.com ] [--no-prompt ] [ --db | --files ]
142+
.B delete [ example.com ] [--no-prompt ] [--force/-f] [ --db | --files | --all ]
143143
.br
144-
Delete site i.e webroot, database, ad configuration permenantly.
144+
Delete site i.e webroot, database, ad configuration permanently.
145145
.TP
146146
.B debug [ -i | --nginx=on/off | --php=on/off | --mysql=on/off | --rewrite=on/off | --fpm=on/off ]
147147
.br
@@ -159,13 +159,13 @@ services.Else it will debug only service provided with argument.This will Stop D
159159
.br
160160
if used with --all=off argument.
161161
.TP
162-
.B secure [ --auth | --port ]
162+
.B secure [ --auth | --port | --ip ]
163163
.br
164164
Update security settings.
165165
.TP
166-
.B clean [ --fastcgi | --opcache | --memcache | --all ]
166+
.B clean [ --fastcgi | --opcache | --memcache | --redis | --pagespeed | --all ]
167167
.br
168-
Clean NGINX fastCGI cache, Opcache, Memcache.
168+
Clean NGINX fastCGI cache, Opcache, Memcache, Redis cache, Pagespeed cache.
169169
.br
170170
Clean NGINX fastCGI cache if no option specified.
171171
.SH ARGUMENTS
@@ -244,6 +244,12 @@ Delete website webroot.
244244
.B --no-prompt
245245
.br
246246
Does not prompt for confirmation when delete command used.
247+
.br
248+
.TP
249+
.B --force/-f
250+
.br
251+
Delete website webroot and database forcefully.Remove nginx configuration for site.
252+
.br
247253
.TP
248254
.B --auth
249255
.br
@@ -258,10 +264,6 @@ used with ee secure command. Change EasyEngine admin port 22222.
258264
used with ee secure command. Update whitelist IP address
259265
.SH WORDPRESS CACHING OPTIONS
260266
.TP
261-
.B --basic
262-
.br
263-
Create WordPress website without cache.
264-
.TP
265267
.B --w3tc
266268
.br
267269
Install and activate Nginx-helper and W3 Total Cache plugin.
@@ -275,6 +277,14 @@ Install and activate Nginx-helper and WP Super Cache plugin.
275277
Install and activate Nginx-helper and W3 Total Cache plugin with
276278
.br
277279
Nginx FastCGI cache.
280+
.TP
281+
.B --wpredis
282+
.br
283+
Install, activate, configure Nginx-helper and Redis Object Cache Plugin, Configure NGINX for Redis Page Caching.
284+
.TP
285+
.B --hhvm
286+
.br
287+
Install, activate Nginx-helper and configure NGINX for HHVM.
278288
.SH FILES
279289
.br
280290
/etc/easyengine/ee.conf
@@ -300,6 +310,13 @@ Report bugs at <http://github.com/rtCamp/easyengine/issues/>
300310
.B Shital
301311
302312
.br
313+
.B Prabuddha
314+
315+
.br
316+
.B Rajdeep Sharma
317+
318+
.br
319+
303320
.SH "SEE ALSO"
304321
.br
305322
EE:

ee/cli/plugins/clean.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Meta:
2020
label = 'clean'
2121
stacked_on = 'base'
2222
stacked_type = 'nested'
23-
description = ('Clean NGINX FastCGI cache, Opcacache, Memcache')
23+
description = ('Clean NGINX FastCGI cache, Opcacache, Memcache, Pagespeed Cache, Redis Cache')
2424
arguments = [
2525
(['--all'],
2626
dict(help='Clean all cache', action='store_true')),
@@ -80,7 +80,7 @@ def clean_memcache(self):
8080
Log.info(self, "Memcache not installed")
8181
except Exception as e:
8282
Log.debug(self, "{0}".format(e))
83-
Log.error(self, "Unable to restart Memcached")
83+
Log.error(self, "Unable to restart Memcached", False)
8484

8585
@expose(hide=True)
8686
def clean_fastcgi(self):
@@ -89,7 +89,7 @@ def clean_fastcgi(self):
8989
Log.info(self, "Cleaning NGINX FastCGI cache")
9090
EEShellExec.cmd_exec(self, "rm -rf /var/run/nginx-cache/*")
9191
else:
92-
Log.error(self, "Unable to clean FastCGI cache")
92+
Log.error(self, "Unable to clean FastCGI cache", False)
9393

9494
@expose(hide=True)
9595
def clean_opcache(self):
@@ -105,7 +105,7 @@ def clean_opcache(self):
105105
" please check you have admin tools installed")
106106
Log.debug(self, "please check you have admin tools installed,"
107107
" or install them with `ee stack install --admin`")
108-
Log.error(self, "Unable to clean opcache")
108+
Log.error(self, "Unable to clean opcache", False)
109109

110110
@expose(hide=True)
111111
def clean_pagespeed(self):
@@ -116,7 +116,7 @@ def clean_pagespeed(self):
116116
else:
117117
Log.debug(self, "/var/ngx_pagespeed_cache does not exist,"
118118
" so cache not cleared")
119-
Log.error(self, "Unable to clean pagespeed cache")
119+
Log.error(self, "Unable to clean pagespeed cache", False)
120120

121121

122122
def load(app):

0 commit comments

Comments
 (0)