Skip to content

Commit a7ee0d2

Browse files
authored
Merge pull request #1456 from mrrobot47/update/images
Update PHP, Nginx and Mariadb images
2 parents 5d2cf2f + 3d629cc commit a7ee0d2

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

img-versions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"easyengine/cron": "v4.0.0",
33
"easyengine/mailhog": "v4.0.0",
4-
"easyengine/mariadb": "v4.0.0",
4+
"easyengine/mariadb": "v4.1.3",
55
"easyengine/nginx-proxy": "v4.0.3",
6-
"easyengine/nginx": "v4.1.0",
7-
"easyengine/php": "v4.1.2",
6+
"easyengine/nginx": "v4.1.3",
7+
"easyengine/php": "v4.1.3",
88
"easyengine/php5.6": "v4.0.0",
99
"easyengine/php7.0": "v4.1.2",
10-
"easyengine/php7.2": "v4.1.2",
11-
"easyengine/php7.3": "v4.1.2",
12-
"easyengine/php7.4": "v4.1.2",
10+
"easyengine/php7.2": "v4.1.3",
11+
"easyengine/php7.3": "v4.1.3",
12+
"easyengine/php7.4": "v4.1.3",
1313
"easyengine/postfix": "v4.0.0",
1414
"easyengine/redis": "v4.0.0",
1515
"easyengine/newrelic-daemon": "v4.0.0"

php/EE/Migration/SiteContainers.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,31 @@ public static function delete( $path_to_delete ) {
206206
/**
207207
* Function to reload site's nginx.
208208
*
209-
* @param string $site_fs_path Directory containing site's docker-compose.yml.
209+
* @param string $site_fs_path Directory containing site's docker-compose.yml.
210210
*/
211211
public static function reload_nginx( $site_fs_path ) {
212212

213213
chdir( $site_fs_path );
214-
$success = EE::exec( "docker-compose exec nginx sh -c 'nginx -t && service openresty reload'" );
214+
$success = EE::exec( "docker-compose exec nginx sh -c 'nginx -t && nginx -s reload'" );
215215
if ( ! $success ) {
216216
throw new \Exception( 'Could not reload nginx. Check logs.' );
217217
}
218218
}
219219

220+
/**
221+
* Function to reload site's php.
222+
*
223+
* @param string $site_fs_path Directory containing site's docker-compose.yml.
224+
*/
225+
public static function reload_php( $site_fs_path ) {
226+
227+
chdir( $site_fs_path );
228+
$success = EE::exec( "docker-compose exec php bash -c 'kill -USR2 1'" );
229+
if ( ! $success ) {
230+
throw new \Exception( 'Could not reload php. Check logs.' );
231+
}
232+
}
233+
220234
/**
221235
* Function to pull site docker-compose images.
222236
*

0 commit comments

Comments
 (0)