Skip to content

WIP: Install WP directly into /public, remove the config midlayer #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ DB_USER=root
DB_PASSWORD=root
#MYSQLI_DEFAULT_SOCKET=/var/run/mysqld/mysqld.sock # optional

### Home & URL
WP_HOME=https://local.site
WP_SITEURL=${WP_HOME}/wp

### Network Setup
#WP_ALLOW_MULTISITE=true # optional
#WP_ALLOW_MULTISITE=false
#MULTISITE=false
#SUBDOMAIN_INSTALL=false # optional: set up multisite with sub directory or sub domain, only used if WP_ALLOW_MULTISITE=true

### Remote Images
Expand Down
20 changes: 2 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
# Idea
.DS_Store
.idea
.vscode

# Javascript
node_modules
dist
build

public/.well-known/

# WordPress
wp
public/content/upgrade
public/content/plugins
public/content/themes
public/content/mu-plugins/*
!public/content/mu-plugins/load.php
public/content/uploads
public/content/db.php
public/content/object-cache.php
public

# Composer
vendor
Expand All @@ -27,11 +16,6 @@ vendor
plugins/*/wp-content
plugins/*/composer.lock

# Languages
public/content/languages
!public/content/languages/plugins
!public/content/mu-plugins/languages

# Dotenv
.env
.env.*
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
"dekode/logging": "@dev"
},
"extra": {
"wordpress-install-dir": "public/wp",
"wordpress-install-dir": "public",
"installer-paths": {
"public/content/mu-plugins/{$name}/": [
"public/wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"public/content/plugins/{$name}/": [
"public/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"public/content/themes/{$name}/": [
"public/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
},
Expand All @@ -85,13 +85,16 @@
"languages": [
"nb_NO"
],
"directory": "public/content/languages"
"directory": "public/wp-content/languages"
}
},
"scripts": {
"post-install-cmd": [
"cp public/content/plugins/spinupwp/drop-ins/object-cache.php public/content/object-cache.php",
"cp -r packages/translations/* public/content/languages/"
"cp public/wp-content/plugins/spinupwp/drop-ins/object-cache.php public/wp-content/object-cache.php",
"mkdir -p public/wp-content/languages/ && cp -r packages/translations/* public/wp-content/languages/",
"cp config/wp-config-template.php public/wp-config.php",
"rm -rf public/wp-content/themes/twentytwenty",
"rm -rf public/wp-content/themes/twentytwentyone"
],
"lint": [
"./vendor/bin/phpcs ."
Expand All @@ -106,7 +109,7 @@
"@composer install --no-dev && composer wp-translation-downloader:download"
],
"make-pot": [
"./vendor/bin/wp i18n make-pot . languages/project-base.pot --exclude=\".github,plugins,public/content/plugins,vendor,public/wp,node_modules,tests\" --slug=project-base"
"./vendor/bin/wp i18n make-pot . languages/project-base.pot --exclude=\".github,plugins,public/wp-content/plugins,vendor,public/wp,node_modules,tests\" --slug=project-base"
]
}
}
187 changes: 0 additions & 187 deletions config/application.php

This file was deleted.

17 changes: 0 additions & 17 deletions config/environments/development.php

This file was deleted.

17 changes: 0 additions & 17 deletions config/environments/local.php

This file was deleted.

14 changes: 0 additions & 14 deletions config/environments/production.php

This file was deleted.

11 changes: 0 additions & 11 deletions config/environments/staging.php

This file was deleted.

Loading