Jonathan Desrosiers ce20ad7431 Build/Test Tools: Mount correct volume directory for devcontainer.
This switches to mounting the current directory instead of the one above the working directory in the mounted volume, which can include many directories of unrelated projects.

Props johnbillion.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/trunk@60081 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-25 13:09:41 +00:00

19 lines
527 B
Bash
Executable File

#!/bin/sh
set -eux
if [ -z ${CODESPACE_NAME+x} ]; then
SITE_HOST="http://localhost:8080"
else
SITE_HOST="https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"
fi
# Install dependencies
cd /workspace
npm install && npm run build:dev
# Install WordPress and activate the plugin/theme.
cd /var/www/html
echo "Setting up WordPress at $SITE_HOST"
wp core install --url="$SITE_HOST" --title="WordPress Trunk" --admin_user="admin" --admin_email="admin@example.com" --admin_password="password" --skip-email