From 327dd7bc2680bfeb4bf042aa189764fa35aa3d6f Mon Sep 17 00:00:00 2001 From: Tang Rufus Date: Sun, 14 Apr 2019 14:25:24 +0100 Subject: [PATCH] Default `devUrl` to `http://.test` When creating new projects via `$ composer create-project roots/sage `, default `devUrl` to `http://.test`. --- src/Console/Commands/ConfigCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Console/Commands/ConfigCommand.php b/src/Console/Commands/ConfigCommand.php index a4cf038..922ecc2 100644 --- a/src/Console/Commands/ConfigCommand.php +++ b/src/Console/Commands/ConfigCommand.php @@ -24,6 +24,8 @@ protected function configure() parent::configure(); $this->configFile = "{$this->root}/resources/assets/config.json"; $this->config = json_decode(file_get_contents($this->configFile), true); + $this->config['devUrl'] = 'http://' . basename($this->root) . '.test'; + $this->addOption( 'url', null,