mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 12:42:04 +02:00
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 #62899. git-svn-id: https://develop.svn.wordpress.org/trunk@60081 602fd350-edb4-49c9-b593-d223f7449a82
19 lines
527 B
Bash
Executable File
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
|