mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 06:55:56 +00:00
wip
This commit is contained in:
@@ -30,8 +30,8 @@ class ShareCommand extends Command
|
||||
|
||||
(new Factory())
|
||||
->setLoop(app(LoopInterface::class))
|
||||
// ->setHost('beyond.sh') // TODO: Read from (local/global) config file
|
||||
// ->setPort(8080) // TODO: Read from (local/global) config file
|
||||
->setHost(config('expose.host', 'localhost'))
|
||||
->setPort(config('expose.port', 8080))
|
||||
->setAuth($this->option('auth'))
|
||||
->createClient($this->argument('host'), explode(',', $this->option('subdomain')))
|
||||
->createHttpServer()
|
||||
|
||||
@@ -12,6 +12,8 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
|
||||
{
|
||||
$this->input->setArgument('host', basename(getcwd()).'.test');
|
||||
|
||||
$this->input->setOption('subdomain', basename(getcwd()));
|
||||
|
||||
parent::handle();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user