Skip to content

Commit

Permalink
The document root folder is now public
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Dec 3, 2022
1 parent d7bef7b commit 4bfa7b2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,6 +10,7 @@
/system/vendor
/mix-manifest.json
/docker/mariadb/data
/public/build/*

# Data folder ignores
/data/debugbar/*
Expand Down
2 changes: 1 addition & 1 deletion docker/general/nginx/conf.d/domains/default.conf
Expand Up @@ -3,7 +3,7 @@ server {

# Make site accessible from http://localhost/
server_name _;
root /var/www/html;
root /var/www/html/public;

index index.php index.html index.htm;

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions index.php → public/index.php
Expand Up @@ -15,12 +15,12 @@
use Johncms\Mail\EmailSender;

// If the system is not installed, redirect to the installer.
if (! is_file('config/autoload/database.local.php')) {
if (! is_file('../config/autoload/database.local.php')) {
header('Location: /install/');
exit;
}

require 'system/bootstrap.php';
require '../system/bootstrap.php';

$container = ContainerFactory::getContainer();
$application = new Application($container);
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions vite.config.ts
Expand Up @@ -6,10 +6,11 @@ export default defineConfig({
plugins: [
vue()
],
base: '/public/',
publicDir: false,
base: '/build/',
build: {
manifest: true,
outDir: 'public/',
outDir: 'public/build/',
rollupOptions: {
input: {
admin: './themes/admin/src/js/app.ts',
Expand Down

0 comments on commit 4bfa7b2

Please sign in to comment.