Skip to content

Commit 486032d

Browse files
Allow public access to A8C Playground instance (#119)
## Motivation for the change, related issues We want to be using the latest Playground updates on WordPress.com. Let's allow public access to our private Playground instance. ## Implementation details This PR comments out the portions of our deployment script that enforce privacy. Those portions are left in place for now to document this decision. ## Testing Instructions (or ideally a Blueprint) - CI - Deploy after merging.
1 parent ac369a4 commit 486032d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎./workflows/deploy-private-website.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ jobs:
4646
chmod 0600 ~/.ssh/*
4747
4848
# Add site privacy script to the website build
49-
cp packages/playground/website-deployment/a8c/site-privacy.php \
50-
dist/packages/playground/wasm-wordpress-net/
49+
# NOTE: We are no longer enforcing privacy so we can use our private instance in public contexts, like WordPress.com
50+
# cp packages/playground/website-deployment/a8c/site-privacy.php \
51+
# dist/packages/playground/wasm-wordpress-net/
5152
5253
# Website files
5354
rsync -avz -e "ssh -i ~/.ssh/id_ed25519" --delete \
@@ -69,6 +70,7 @@ jobs:
6970
-tt '~/website-deployment/apply-update.sh'
7071
7172
# Enforce privacy for web app
72-
ssh -i ~/.ssh/id_ed25519 \
73-
${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }} \
74-
-tt 'sed -i "2i if ( \"cli\" !== php_sapi_name() ) { require_once __DIR__ . \"/site-privacy.php\"; Site_Privacy::enforce(); }" ~/htdocs/custom-redirects.php'
73+
# NOTE: We are no longer enforcing privacy so we can use our private instance in public contexts, like WordPress.com
74+
# ssh -i ~/.ssh/id_ed25519 \
75+
# ${{ secrets.DEPLOY_WEBSITE_TARGET_USER }}@${{ secrets.DEPLOY_WEBSITE_TARGET_HOST }} \
76+
# -tt 'sed -i "2i if ( \"cli\" !== php_sapi_name() ) { require_once __DIR__ . \"/site-privacy.php\"; Site_Privacy::enforce(); }" ~/htdocs/custom-redirects.php'

0 commit comments

Comments
 (0)