Skip to content

Commit 4d8eb88

Browse files
committed
Merge branch 'mrrobot47-fix/acmephp-require-in-composer' into develop-v4
2 parents e889ee9 + a759f1f commit 4d8eb88

File tree

5 files changed

+136
-3
lines changed

5 files changed

+136
-3
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"prefer-stable": true,
2626
"require": {
2727
"php": ">=7.0",
28+
"acmephp/core": "dev-master",
2829
"composer/composer": "^1.2.0",
2930
"composer/semver": "~1.0",
3031
"easyengine/cron-command": "v1.0.0-beta.2",

composer.lock

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

php/class-ee-site.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ public function up( $args, $assoc_args ) {
219219
if ( EE::db()::site_enabled( $this->site['name'] ) && ! $force ) {
220220
EE::error( sprintf( '%s is already enabled!', $this->site['name'] ) );
221221
}
222-
EE::log( "Enabling site $this->site['name']." );
222+
EE::log( sprintf( 'Enabling site %s.', $this->site['name'] ) );
223223
if ( EE::docker()::docker_compose_up( $this->site['root'] ) ) {
224224
EE::db()::update( [ 'is_enabled' => '1' ], [ 'sitename' => $this->site['name'] ] );
225-
EE::success( "Site $this->site['name'] enabled." );
225+
EE::success( sprintf( 'Site %s enabled.', $this->site['name'] ) );
226226
} else {
227227
EE::error( sprintf( 'There was error in enabling %s. Please check logs.', $this->site['name'] ) );
228228
}

php/site-utils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ function init_checks() {
9090

9191

9292
if ( EE::docker()::boot_container( $proxy_type, $ee_proxy_command ) ) {
93+
$fs = new Filesystem();
94+
$fs->dumpFile( "$EE_CONF_ROOT/nginx/conf.d/custom.conf", file_get_contents( EE_ROOT . '/templates/custom.conf.mustache' ) );
9395
EE::success( "$proxy_type container is up." );
9496
} else {
9597
EE::error( "There was some error in starting $proxy_type container. Please check logs." );

templates/custom.conf.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
server_tokens off;
2+
client_max_body_size 100m;

0 commit comments

Comments
 (0)