Skip to content

Commit 5178f53

Browse files
committed
Merge branch 'develop' for v4.7.1
2 parents 4800c61 + abe5da6 commit 5178f53

File tree

8 files changed

+61
-51
lines changed

8 files changed

+61
-51
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
<img src="https://i2.wp.com/easyengine.io/wp-content/uploads/sites/20/2019/06/[email protected]?fit=720%2C170&ssl=1" alt="EasyEngine Logo" />
33

4-
# EasyEngine v4 [![Build 🔨 + Test 👨‍🔧](https://github.com/EasyEngine/easyengine/actions/workflows/test_and_build.yml/badge.svg?branch=develop)](https://github.com/EasyEngine/easyengine/actions/workflows/test_and_build.yml) [![Join EasyEngine Slack Channel](http://slack.easyengine.io/badge.svg)](http://slack.easyengine.io/) [![Latest Stable Version](https://poser.pugx.org/easyengine/easyengine/v/stable)](https://github.com/EasyEngine/easyengine/releases) [![License](https://poser.pugx.org/easyengine/easyengine/license)](https://packagist.org/packages/easyengine/easyengine)
4+
# EasyEngine v4
5+
[![Build 🔨 + Test 👨‍🔧](https://github.com/EasyEngine/easyengine/actions/workflows/test_and_build.yml/badge.svg?branch=develop)](https://github.com/EasyEngine/easyengine/actions/workflows/test_and_build.yml)
6+
[![Latest Stable Version](https://poser.pugx.org/easyengine/easyengine/v/stable)](https://github.com/EasyEngine/easyengine/releases) [![License](https://poser.pugx.org/easyengine/easyengine/license)](https://packagist.org/packages/easyengine/easyengine)
57

68
EasyEngine makes it greatly easy to manage nginx, a fast web-server software that consumes little memory when handling increasing volumes of concurrent users.
79

8-
<a href="https://rtcamp.com/?utm_source=github&utm_medium=readme" rel="nofollow"><img src="https://rtcamp.com/wp-content/uploads/2019/04/[email protected]" alt="Handcrafted Enterprise WordPress Solutions by rtCamp" /></a>
9-
1010
## Requirements
1111

1212
* Docker
@@ -65,7 +65,7 @@ ee site create example.com --type=wp --cache
6565

6666
Need a wordpress multi-site with page cache?
6767
```
68-
ee site create example.com --type=wp --mu=wpsubdir --cache
68+
ee site create example.com --type=wp --mu=subdir --cache
6969
```
7070

7171
Need a plain and simple html site?
@@ -84,7 +84,7 @@ Want to know more? Checkout readme of these commands -
8484
* [cron command](https://github.com/EasyEngine/cron-command/)
8585
* [shell command](https://github.com/EasyEngine/shell-command/)
8686

87-
Note: :warning: EasyEngine will currently only run with root privileges. You can run `ee help`, `ee help site` and `ee help site create` to get all the details about the various commands and subcommands that you can run.
87+
Note: :warning: EasyEngine will currently only run with root privileges. You can run `ee help`, `ee help site` and `ee help site create --type=wp` to get all the details about the various commands and subcommands that you can run.
8888

8989
## Development
9090

@@ -110,4 +110,6 @@ We warmheartedly welcome all contributions however and in whatever capacity you
110110

111111
[![PayPal-Donate](https://cloud.githubusercontent.com/assets/4115/5297691/c7b50292-7bd7-11e4-987b-2dc21069e756.png)](http://rt.cx/eedonate)
112112

113+
## Does this interest you?
113114

115+
<a href="https://rtcamp.com/?utm_source=github&utm_medium=readme" rel="nofollow"><img src="https://rtcamp.com/wp-content/uploads/sites/2/2019/04/[email protected]" alt="Handcrafted Enterprise WordPress Solutions by rtCamp" /></a>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.7.0
1+
4.7.1

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
"prefer-stable": true,
2626
"require": {
2727
"php": ">=7.0",
28-
"composer/composer": "2.2.12",
28+
"composer/composer": "2.2.23",
2929
"composer/semver": "3.2.4",
3030
"daverandom/libdns": "^2.0",
3131
"easyengine/admin-tools-command": "v1.1.0",
3232
"easyengine/auth-command": "v1.2.0",
3333
"easyengine/config-command": "v1.0.2",
34-
"easyengine/cron-command": "v2.0.2",
34+
"easyengine/cron-command": "v2.1.0",
3535
"easyengine/log-command": "v1.1.0",
3636
"easyengine/mailhog-command": "v1.0.3",
37-
"easyengine/service-command": "v1.6.0",
37+
"easyengine/service-command": "v1.6.1",
3838
"easyengine/shell-command": "v1.1.1",
3939
"easyengine/site-command": "v3.3.0",
4040
"easyengine/site-type-php": "v1.8.0",

composer.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

img-versions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"easyengine/cron": "v4.7.0",
33
"easyengine/mailhog": "v4.6.5",
44
"easyengine/mariadb": "v4.6.6",
5-
"easyengine/nginx-proxy": "v4.7.0",
6-
"easyengine/nginx": "v4.7.0",
5+
"easyengine/nginx-proxy": "v4.7.1",
6+
"easyengine/nginx": "v4.7.1",
77
"easyengine/php": "v4.6.6",
88
"easyengine/php5.6": "v4.6.6",
99
"easyengine/php7.0": "v4.6.6",
1010
"easyengine/php7.2": "v4.6.6",
1111
"easyengine/php7.3": "v4.6.6",
1212
"easyengine/php7.4": "v4.7.0",
13-
"easyengine/php8.0": "v4.7.0",
14-
"easyengine/php8.1": "v4.7.0",
15-
"easyengine/php8.2": "v4.7.0",
16-
"easyengine/php8.3": "v4.7.0",
13+
"easyengine/php8.0": "v4.7.1",
14+
"easyengine/php8.1": "v4.7.1",
15+
"easyengine/php8.2": "v4.7.1",
16+
"easyengine/php8.3": "v4.7.1",
1717
"easyengine/postfix": "v4.7.0",
1818
"easyengine/redis": "v4.7.0",
1919
"easyengine/newrelic-daemon": "v4.7.0"

php/EE/Migration/Containers.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ public static function image_cleanup() {
128128
*/
129129
public static function update_docker_compose() {
130130

131-
$docker_compose_version = EE::launch( 'docker-compose version --short' )->stdout;
132-
$docker_compose_path = EE::launch( 'command -v docker-compose' )->stdout;
133-
$docker_compose_path = trim( $docker_compose_path );
131+
$docker_compose_version = trim( EE::launch( 'docker-compose version --short' )->stdout );
132+
$docker_compose_path = trim( EE::launch( 'command -v docker-compose' )->stdout );
134133
$docker_compose_backup_path = EE_BACKUP_DIR . '/docker-compose.backup';
135134
$docker_compose_new_path = EE_BACKUP_DIR . '/docker-compose';
136135

php/EE/Migration/SiteContainers.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,19 @@ public static function revert_site_docker_compose_file( $source_path, $destinati
7070
* @return bool
7171
*/
7272
public static function is_site_service_image_changed( $updated_images, $site_info ) {
73+
7374
chdir( $site_info['site_fs_path'] );
74-
$launch = EE::launch( 'docker-compose config --services' );
75-
$services = explode( PHP_EOL, trim( $launch->stdout ) );
75+
$launch = EE::launch( 'docker-compose images' );
76+
$lines = explode( PHP_EOL, trim( $launch->stdout ) );
77+
$site_images = [];
78+
79+
for ( $i = 1; $i < count( $lines ); $i ++ ) {
80+
$columns = preg_split( '/\s+/', $lines[ $i ] );
7681

77-
$site_images = array_map( function ( $service ) {
78-
return 'easyengine/' . $service;
79-
}, $services );
82+
if ( isset( $columns[1] ) ) {
83+
$site_images[] = $columns[1];
84+
}
85+
}
8086

8187
$common_image = array_intersect( $updated_images, $site_images );
8288

php/EE/Runner.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,15 @@ public function check_requirements( $show_error = true ) {
133133
* Function to run migrations required to upgrade to the newer version. Will always be invoked from the newer phar downloaded inside the /tmp folder
134134
*/
135135
private function migrate() {
136+
136137
$rsp = new \EE\RevertableStepProcessor();
137138

138139
$rsp->add_step( 'ee-db-migrations', 'EE\Migration\Executor::execute_migrations' );
139140
$rsp->add_step( 'ee-custom-container-migrations', 'EE\Migration\CustomContainerMigrations::execute_migrations' );
140141
$rsp->add_step( 'ee-docker-image-migrations', 'EE\Migration\Containers::start_container_migration' );
141142
$rsp->add_step( 'ee-update-docker-compose', 'EE\Migration\Containers::update_docker_compose' );
143+
$rsp->add_step( 'ee-update-cron-config', 'EE\Cron\Utils\update_cron_config' );
144+
142145
return $rsp->execute();
143146
}
144147

0 commit comments

Comments
 (0)