Skip to content

Commit 8ccbb76

Browse files
committed
Merge branch 'update/webroot' of https://github.com/mrrobot47/site-command into mrrobot47-update/webroot
2 parents 1507808 + 5a5f317 commit 8ccbb76

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ci/prepare.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ rm ee
1010
cd ..
1111
git clone https://github.com/EasyEngine/easyengine.git easyengine --depth=1
1212
cd easyengine
13+
echo 'travis_test' > VERSION
1314

1415
# Copy tests to EE repo
1516
rm -r features

src/Site_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ private function wp_download_and_config( $assoc_args ) {
10711071

10721072
EE::log( 'Downloading and configuring WordPress.' );
10731073

1074-
$chown_command = "docker-compose exec php chown -R www-data: /var/www/";
1074+
$chown_command = "docker-compose exec --user=root php chown -R www-data: /var/www/";
10751075
\EE\Utils\default_launch( $chown_command );
10761076

10771077
$core_download_command = "docker-compose exec --user='www-data' php wp core download --locale='" . $this->locale . "' " . $core_download_arguments;

src/Site_Docker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function generate_docker_compose_yml( array $filters = [] ) {
4747
$php['volumes'] = array(
4848
array(
4949
'vol' => array(
50-
array( 'name' => './app/src:/var/www/html' ),
50+
array( 'name' => './app/src:/var/www/htdocs' ),
5151
array( 'name' => './config/php-fpm/php.ini:/usr/local/etc/php/php.ini' ),
5252
),
5353
),
@@ -82,7 +82,7 @@ public function generate_docker_compose_yml( array $filters = [] ) {
8282
);
8383
$nginx['volumes'] = array(
8484
'vol' => array(
85-
array( 'name' => './app/src:/var/www/html' ),
85+
array( 'name' => './app/src:/var/www/htdocs' ),
8686
array( 'name' => './config/nginx/default.conf:/etc/nginx/conf.d/default.conf' ),
8787
array( 'name' => './logs/nginx:/var/log/nginx' ),
8888
array( 'name' => './config/nginx/common:/usr/local/openresty/nginx/conf/common' ),

templates/config/nginx/default.conf.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server {
55
access_log /var/log/nginx/access.log;
66
error_log /var/log/nginx/error.log;
77
8-
root /var/www/html;
8+
root /var/www/htdocs;
99
1010
server_name {{server_name}};
1111

0 commit comments

Comments
 (0)