Rewrite rules and block installed if it's already installed
This commit is contained in:
@@ -4,6 +4,8 @@ _ide_helper.php
|
|||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
|
*.bak
|
||||||
|
|
||||||
# Laravel 4 specific
|
# Laravel 4 specific
|
||||||
bootstrap/compiled.php
|
bootstrap/compiled.php
|
||||||
app/storage/
|
app/storage/
|
||||||
@@ -23,6 +25,7 @@ env.php
|
|||||||
.vagrant
|
.vagrant
|
||||||
#Homestead.yaml
|
#Homestead.yaml
|
||||||
Homestead.json
|
Homestead.json
|
||||||
|
LocalValetDriver.php
|
||||||
|
|
||||||
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
|
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
|
||||||
.rocketeer/
|
.rocketeer/
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ Options -Indexes
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
|
|
||||||
|
RewriteRule ^(.*)$ public/$1 [L]
|
||||||
|
|
||||||
# Handle Authorization Header
|
# Handle Authorization Header
|
||||||
RewriteCond %{HTTP:Authorization} .
|
RewriteCond %{HTTP:Authorization} .
|
||||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
dnsmasq: /usr/local/sbin/dnsmasq --keep-in-foreground
|
dnsmasq: /usr/local/sbin/dnsmasq --keep-in-foreground
|
||||||
php-fpm: /usr/local/sbin/php-fpm --nodaemonize
|
php-fpm: /usr/local/sbin/php-fpm --nodaemonize
|
||||||
nginx: /usr/local/bin/nginx
|
nginx: /usr/local/bin/nginx
|
||||||
mysql: /usr/local/bin/mysqld --log-slow-queries
|
mysql: /usr/local/bin/mysqld
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ class InstallerController extends AppBaseController
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
if(config('app.key') !== 'NOT_INSTALLED') {
|
||||||
|
return view('installer::errors/already-installed');
|
||||||
|
}
|
||||||
|
|
||||||
return view('installer::index-start');
|
return view('installer::index-start');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
@extends('installer::app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<h2>phpVMS already installed!</h2>
|
||||||
|
<p>phpVMS has already been installed! Please remove the modules/Installer folder.</p>
|
||||||
|
{!! Form::open(['url' => '/', 'method' => 'get']) !!}
|
||||||
|
<p style="text-align: right">
|
||||||
|
{!! Form::submit('Go to your site >>', ['class' => 'btn btn-success']) !!}
|
||||||
|
</p>
|
||||||
|
{!! Form::close() !!}
|
||||||
|
@endsection
|
||||||
Reference in New Issue
Block a user