Skip to content

Commit

Permalink
fix初始化命令init
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbo committed Jun 12, 2018
1 parent 4af13b1 commit c19db5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SWBT.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function init(){
if (!$this->container['is_independent_project']) {
$swbtPath = $this->container['swbt_dir'];
copy(dirname(__DIR__) . '/' . $this->container['env_name'], $swbtPath . $this->container['env_name']);
copy(dirname(__DIR__) . 'config/SWBT.php', $swbtPath . 'config/SWBT.php');
copy(dirname(__DIR__) . '/config/SWBT.php', $swbtPath . 'config/SWBT.php');
$paths = [$swbtPath, $swbtPath . 'config', $swbtPath . 'storage', $swbtPath . 'storage/logs'];
array_walk($paths, function ($path){
if (!file_exists($path)) {
Expand Down

0 comments on commit c19db5f

Please sign in to comment.