From 3a3841b175eafb1ca879dde278ad54d7cc06294c Mon Sep 17 00:00:00 2001 From: Rod Date: Tue, 6 Oct 2015 21:08:46 +0800 Subject: [PATCH] fix installer --- app/Http/Controllers/InstallController.php | 6 +++--- release.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/InstallController.php b/app/Http/Controllers/InstallController.php index 26050a9..a1fd055 100644 --- a/app/Http/Controllers/InstallController.php +++ b/app/Http/Controllers/InstallController.php @@ -17,9 +17,6 @@ class InstallController extends Controller */ public function __construct() { - // set maximum execution time - set_time_limit(300); - $this->middleware('installable', ['except' => []]); } @@ -91,10 +88,13 @@ protected function install($request) { // Modify env $dir = base_path(); + $ret = true; + /* $ret = copy( $dir . '/.env.example', $dir . '/.env' ); + */ if ($ret) { modifyEnv([ diff --git a/release.sh b/release.sh index 1d7b0ca..e8f31c2 100755 --- a/release.sh +++ b/release.sh @@ -54,6 +54,8 @@ find . -type f -exec chmod 0644 {} + chmod 0775 . chmod -R 0775 storage chmod g+w . bootstrap/cache +cp .env.example .env +chmod g+w .env zip -r 3n1website-master.zip ./