@@ -47,15 +47,15 @@ |
||
47 | 47 | exit(0); |
48 | 48 | } |
49 | 49 | }*/ |
50 | - $root = __DIR__ . '/../../'; |
|
50 | + $root = __DIR__.'/../../'; |
|
51 | 51 | if (Plateform::isPhar()) { |
52 | - $root = Plateform::getPharPath() . '/'; |
|
52 | + $root = Plateform::getPharPath().'/'; |
|
53 | 53 | } |
54 | 54 | $output->writeln('<info>Creating a new website...</info>'); |
55 | - $this->fs->copy($root . 'res/skeleton/config.yml', $this->getPath() . '/' . self::CONFIG_FILE, true); |
|
56 | - $this->fs->mirror($root . 'res/skeleton/content', $this->getPath() . '/content'); |
|
57 | - $this->fs->mirror($root . 'res/skeleton/layouts', $this->getPath() . '/layouts'); |
|
58 | - $this->fs->mirror($root . 'res/skeleton/static', $this->getPath() . '/static'); |
|
55 | + $this->fs->copy($root.'res/skeleton/config.yml', $this->getPath().'/'.self::CONFIG_FILE, true); |
|
56 | + $this->fs->mirror($root.'res/skeleton/content', $this->getPath().'/content'); |
|
57 | + $this->fs->mirror($root.'res/skeleton/layouts', $this->getPath().'/layouts'); |
|
58 | + $this->fs->mirror($root.'res/skeleton/static', $this->getPath().'/static'); |
|
59 | 59 | $output->writeln('Done!'); |
60 | 60 | } catch (\Exception $e) { |
61 | 61 | throw new \Exception(sprintf($e->getMessage())); |