feat: wip migration
This commit is contained in:
parent
e3122ee96e
commit
b0ba1fd105
7 changed files with 1119 additions and 49 deletions
25
.env.example
25
.env.example
|
|
@ -7,8 +7,8 @@ DB_PASSWORD='database_password'
|
|||
# DATABASE_URL='mysql://database_user:database_password@database_host:database_port/database_name'
|
||||
|
||||
# Optional database variables
|
||||
# DB_HOST='localhost'
|
||||
# DB_PREFIX='wp_'
|
||||
DB_HOST='localhost'
|
||||
DB_PREFIX='wp_'
|
||||
|
||||
WP_ENV='development'
|
||||
WP_HOME='http://example.com'
|
||||
|
|
@ -26,3 +26,24 @@ AUTH_SALT='generateme'
|
|||
SECURE_AUTH_SALT='generateme'
|
||||
LOGGED_IN_SALT='generateme'
|
||||
NONCE_SALT='generateme'
|
||||
|
||||
# MAIL
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=
|
||||
SMTP_AUTH=
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_SECURE=
|
||||
MAIL_FROM_NAME=
|
||||
MAIL_FROM_ADDRESS=
|
||||
|
||||
# CRON
|
||||
DISABLE_WP_CRON=true
|
||||
|
||||
# CRM
|
||||
CRM_ENDPOINT=
|
||||
CRM_TOKEN=
|
||||
CRM_PASSWORD=
|
||||
|
||||
# MATOMO
|
||||
MATOMO_SITE_ID=
|
||||
|
|
|
|||
20
.gitignore
vendored
20
.gitignore
vendored
|
|
@ -1,16 +1,16 @@
|
|||
# Application
|
||||
web/app/plugins/*
|
||||
!web/app/plugins/.gitkeep
|
||||
web/app/mu-plugins/*/
|
||||
web/app/themes/twentytwentyfive/
|
||||
web/app/upgrade
|
||||
web/app/uploads/*
|
||||
!web/app/uploads/.gitkeep
|
||||
web/app/cache/*
|
||||
public/app/plugins/*
|
||||
!public/app/plugins/.gitkeep
|
||||
public/app/mu-plugins/*/
|
||||
public/app/themes/*/
|
||||
public/app/upgrade
|
||||
public/app/uploads/*
|
||||
!public/app/uploads/.gitkeep
|
||||
public/app/cache/*
|
||||
|
||||
# WordPress
|
||||
web/wp
|
||||
web/.htaccess
|
||||
public/wp
|
||||
public/.htaccess
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
|
|
|||
|
|
@ -1,33 +1,20 @@
|
|||
{
|
||||
"name": "roots/bedrock",
|
||||
"name": "uwil/ldc",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"description": "WordPress boilerplate with Composer, easier configuration, and an improved folder structure",
|
||||
"homepage": "https://roots.io/bedrock/",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Scott Walkinshaw",
|
||||
"email": "scott.walkinshaw@gmail.com",
|
||||
"homepage": "https://github.com/swalkinshaw"
|
||||
},
|
||||
{
|
||||
"name": "Ben Word",
|
||||
"email": "ben@benword.com",
|
||||
"homepage": "https://github.com/retlehs"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/roots/bedrock/issues",
|
||||
"forum": "https://discourse.roots.io/category/bedrock"
|
||||
},
|
||||
"description": "LDC.fr website",
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://wpackagist.org",
|
||||
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
|
||||
},
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://lab.s-web.fr/api/v4/group/23/-/packages/composer/packages.json"
|
||||
},
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://connect.advancedcustomfields.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
@ -40,7 +27,15 @@
|
|||
"roots/wordpress": "6.7.2",
|
||||
"roots/wp-config": "1.0.0",
|
||||
"roots/wp-password-bcrypt": "1.2.0",
|
||||
"wpackagist-theme/twentytwentyfive": "^1.0"
|
||||
"uwil/ldc-theme": "^1.0",
|
||||
"ldc/ldccrmv4client": "^4.0",
|
||||
"wpackagist-plugin/breadcrumb-navxt": "^7.4",
|
||||
"wpengine/advanced-custom-fields-pro": "^6.3",
|
||||
"wpackagist-plugin/ajax-load-more": "^7.3",
|
||||
"uwil/admin-secure-wp": "^2.0",
|
||||
"wpackagist-plugin/pagination": "^1.2",
|
||||
"wpackagist-plugin/duplicate-post": "^4.5",
|
||||
"wpackagist-plugin/webp-express": "^0.25.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"roave/security-advisories": "dev-latest",
|
||||
|
|
@ -58,11 +53,19 @@
|
|||
"prefer-stable": true,
|
||||
"extra": {
|
||||
"installer-paths": {
|
||||
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
|
||||
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
|
||||
"web/app/themes/{$name}/": ["type:wordpress-theme"]
|
||||
"public/app/mu-plugins/{$name}/": [
|
||||
"type:wordpress-muplugin",
|
||||
"wpackagist-plugin/breadcrumb-navxt",
|
||||
"wpengine/advanced-custom-fields-pro",
|
||||
"wpackagist-plugin/ajax-load-more",
|
||||
"wpackagist-plugin/webp-express",
|
||||
"wpackagist-plugin/wp-pagenavi",
|
||||
"wpackagist-plugin/duplicate-post"
|
||||
],
|
||||
"public/app/plugins/{$name}/": ["type:wordpress-plugin"],
|
||||
"public/app/themes/{$name}/": ["type:wordpress-theme"]
|
||||
},
|
||||
"wordpress-install-dir": "web/wp"
|
||||
"wordpress-install-dir": "public/wp"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "pint --test",
|
||||
|
|
|
|||
1004
composer.lock
generated
1004
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -28,7 +28,7 @@ $root_dir = dirname(__DIR__);
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
$webroot_dir = $root_dir . '/web';
|
||||
$webroot_dir = $root_dir . '/public';
|
||||
|
||||
/**
|
||||
* Use Dotenv to set required environment variables and load .env file in root
|
||||
|
|
@ -156,6 +156,15 @@ if (file_exists($env_config)) {
|
|||
require_once $env_config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom config
|
||||
*/
|
||||
$custom_config = __DIR__ . '/custom.php';
|
||||
|
||||
if (file_exists($custom_config)) {
|
||||
require_once $custom_config;
|
||||
}
|
||||
|
||||
Config::apply();
|
||||
|
||||
/**
|
||||
|
|
|
|||
42
config/custom.php
Normal file
42
config/custom.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Configuration overrides for custom variables
|
||||
*/
|
||||
|
||||
use Roots\WPConfig\Config;
|
||||
use function Env\env;
|
||||
|
||||
/**
|
||||
* Disable all core automatic updates
|
||||
*/
|
||||
Config::define('WP_AUTO_UPDATE_CORE', false);
|
||||
|
||||
/**
|
||||
* ACF BO
|
||||
*/
|
||||
if (WP_ENV !== 'development') {
|
||||
Config::define('ACF_LITE', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* SMTP
|
||||
*/
|
||||
Config::define('SMTP_HOST', env('SMTP_HOST'));
|
||||
Config::define('SMTP_PORT', env('SMTP_PORT'));
|
||||
Config::define('SMTP_AUTH', env('SMTP_AUTH'));
|
||||
Config::define('SMTP_USER', env('SMTP_USER'));
|
||||
Config::define('SMTP_PASS', env('SMTP_PASS'));
|
||||
Config::define('SMTP_SECURE', env('SMTP_SECURE'));
|
||||
Config::define('MAIL_FROM_NAME', env('MAIL_FROM_NAME'));
|
||||
Config::define('MAIL_FROM_ADDRESS', env('MAIL_FROM_ADDRESS'));
|
||||
|
||||
/**
|
||||
* MATOMO ANALYTICS
|
||||
*/
|
||||
Config::define('MATOMO_SITE_ID', env('MATOMO_SITE_ID'));
|
||||
|
||||
/**
|
||||
* LDC Web API TOKEN
|
||||
*/
|
||||
Config::define('LDCWEB_API_TOKEN', env('LDCWEB_API_TOKEN'));
|
||||
7
public/index.php
Normal file
7
public/index.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* WordPress View Bootstrapper
|
||||
*/
|
||||
define('WP_USE_THEMES', true);
|
||||
require __DIR__ . '/wp/wp-blog-header.php';
|
||||
Loading…
Add table
Reference in a new issue