Skip to content
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

Sync secrets for local use #412

Merged
merged 4 commits into from
Oct 19, 2023
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# Ignore SimpleTest multi-site environment.
/web/sites/simpletest


# Ignore custom modules managed by Composer.
#
# When a development team creates one or more custom modules that
Expand Down Expand Up @@ -130,3 +129,6 @@ web/profiles/custom/yalesites_profile/vendor/
/atomic
/component-library-twig
/tokens

# Secrets for local use
secrets.json
1 change: 1 addition & 0 deletions .lando.local.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ services:
overrides:
environment:
COMPOSER_PROCESS_TIMEOUT: 1800
CUSTOMER_SECRETS_FAKE_FILE: /app/secrets.json
# This is needed to expose the reverse proxy to the xdebug port (9003)
xdebug: true
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "7.4"
"php": "8.2"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
Expand Down
4 changes: 4 additions & 0 deletions scripts/local/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ fi
# Start lando and create containers.
lando start

# Generate local secrets file.
terminus plugin:install pantheon-systems/terminus-secrets-manager-plugin
terminus secret:site:local-generate yalesites-platform --filepath=./secrets.json

# Install packages and install Drupal using yalesites_profile.
npm install
npm run build-with-install
Expand Down
Loading