mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 22:15:55 +00:00
Merge pull request #32 from ahmedash95/fix-subdomain-on-default-command
Skip subdomain override if provided
This commit is contained in:
@@ -10,9 +10,10 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
|
|||||||
{
|
{
|
||||||
$this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld());
|
$this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld());
|
||||||
|
|
||||||
$subdomain = str_replace('.', '_', basename(getcwd()));
|
if (! $this->hasOption('subdomain')) {
|
||||||
|
$subdomain = str_replace('.', '_', basename(getcwd()));
|
||||||
$this->input->setOption('subdomain', $subdomain);
|
$this->input->setOption('subdomain', $subdomain);
|
||||||
|
}
|
||||||
|
|
||||||
parent::handle();
|
parent::handle();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user