From 7d2128f364c0e81a15653db2508d3e09b262eca1 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sat, 2 Sep 2017 20:30:30 +0100 Subject: Refactor site:create command to allow creation of extra tasks easier --- nginx/stub.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nginx') diff --git a/nginx/stub.php b/nginx/stub.php index 0e67918..b018f18 100644 --- a/nginx/stub.php +++ b/nginx/stub.php @@ -3,12 +3,12 @@ return [ "server { listen *; - server_name $domain; + server_name {$this->domain}; - access_log /web/sites/$name/logs/$name.access_log main; - error_log /web/sites/$name/logs/$name.error_log info; + access_log /web/sites/{$this->name}/logs/{$this->name}.access_log main; + error_log /web/sites/{$this->name}/logs/{$this->name}.error_log info; - root /web/sites/$name/web; + root /web/sites/{$this->name}/web; location ~ \.php$ { # Test for non-existent scripts or throw a 404 error -- cgit v1.2.3