Skip to content
Merged
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
26 changes: 11 additions & 15 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
APP_NAME="op://wp-env/$APP_NAME/APP_NAME"

# Database configuration
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_NAME="op://wp-env/$APP_NAME/DB_NAME"
DB_USER="op://wp-env/$APP_NAME/DB_USER"
DB_PASSWORD="op://wp-env/$APP_NAME/DB_PASSWORD"
DB_HOST="op://wp-env/$APP_NAME/DB_HOST"

WP_ENV=
WP_ENV="op://wp-env/$APP_NAME/WP_ENV"

# Debugging mode. Enabled by default in dev environment.
# Warning: Some plugins disable themselves unless you set it to false.
#WP_DEBUG=
#WP_DEBUG_DISPLAY=

ERROR_ALWAYS_IGNITION=false
WP_DEBUG="op://wp-env/$APP_NAME/WP_DEBUG"

# URL of the main site. Example: https://example.lndo.site
WP_HOME=
WP_HOME="op://wp-env/$APP_NAME/WP_HOME"
WP_SITEURL="${WP_HOME}/wp"
APP_URL="${WP_HOME}"

# Domain of the main site. Example: example.lndo.site
DOMAIN_CURRENT_SITE=
DOMAIN_CURRENT_SITE="op://wp-env/$APP_NAME/DOMAIN_CURRENT_SITE"

# Generate your keys here: https://roots.io/salts.html
AUTH_KEY=
Expand All @@ -31,7 +30,4 @@ SECURE_AUTH_SALT=
LOGGED_IN_SALT=
NONCE_SALT=

# Sentry
SENTRY_DSN=

CSP_REPORT_URI=
SENTRY_DSN="op://wp-env/$APP_NAME/SENTRY_DSN"
19 changes: 7 additions & 12 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Yard\Deployer\Host;
use Yard\Deployer\Loader;
use Yard\Deployer\Stage;
use function Yard\Deployer\shockServer;
use function Yard\Deployer\wp;

require_once __DIR__ . '/vendor/sourcebroker/deployer-loader/autoload.php';
Expand All @@ -24,7 +24,7 @@
after('deploy:vendors', function () {
$alias = currentHost()->getAlias();

if ('brave.wpacc01.yard.nl' === $alias) {
if ('accept' === $alias) {
within('{{release_or_current_path}}', function () {
run('{{bin/composer}} private-packages');
run('{{bin/composer}} require yard/brave-scaffold --dev');
Expand All @@ -34,21 +34,16 @@
});
}

if ('gemeente.wpacc01.yard.nl' === $alias) {
if ('gemeente-accept' === $alias) {
within('{{release_or_current_path}}', function () {
run('{{bin/composer}} private-packages');
run('{{bin/composer}} gemeente-packages');
});
}
})->desc('Scaffold brave and gemeente demo sites.');
//////////

// Hosts.
host('brave.wpacc01.yard.nl')
->setHostname(Host::WPACC01)
->setDeployPath('/data/www/accept-sites/yard/brave')
->setLabels(['stage' => Stage::ACCEPT]);

host('gemeente.wpacc01.yard.nl')
->setHostname(Host::WPACC01)
->setDeployPath('/data/www/accept-sites/yard/gemeente')
->setLabels(['stage' => Stage::ACCEPT]);
shockServer(Host::SHOCK_STAGING_1);

shockServer(Host::SHOCK_STAGING_1, ['gemeente']);
Loading