generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* markdown linting * Drupal setup uses local settings * Remove commends for using `settings.ddev.php` * Standardize "WordPress" * Remove double space * Simplified language and use active voice * Update README.md Co-authored-by: Randy Fay <[email protected]> * Remove Drupal version number * Update README.md Co-authored-by: Randy Fay <[email protected]> * Remove rambling * Update README.md Co-authored-by: Randy Fay <[email protected]> * Update README.md Co-authored-by: Randy Fay <[email protected]> * Use PHP collector from addon folder * Revert "Drupal setup uses local settings" * Sync installation steps * Add demonstration link * Add description for detailed information * Helper command to launch website * Add note about config with timezone example --------- Co-authored-by: tyler36 <[email protected]> Co-authored-by: Randy Fay <[email protected]>
- Loading branch information
1 parent
462b767
commit 46d9893
Showing
6 changed files
with
120 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated | ||
## Description: Launch a browser to XHGui | ||
## Usage: xhgui | ||
## Example: "xhgui" | ||
|
||
DDEV_XHGUI_PORT=8142 | ||
DDEV_XHGUI_HTTPS_PORT=8143 | ||
|
||
FULLURL=${DDEV_PRIMARY_URL} | ||
HTTPS="" | ||
if [ ${DDEV_PRIMARY_URL%://*} = "https" ]; then HTTPS=true; fi | ||
|
||
if [[ ! -z "${GITPOD_INSTANCE_ID}" ]] || [[ "${CODESPACES}" == "true" ]]; then | ||
FULLURL="${FULLURL/-${DDEV_HOST_WEBSERVER_PORT}/-${DDEV_XHGUI_PORT}}" | ||
else | ||
if [ "${HTTPS}" = "" ]; then | ||
FULLURL="${FULLURL%:[0-9]*}:${DDEV_XHGUI_PORT}" | ||
else | ||
FULLURL="${FULLURL%:[0-9]*}:${DDEV_XHGUI_HTTPS_PORT}" | ||
fi | ||
fi | ||
|
||
if [ -n "${1:-}" ]; then | ||
if [[ ${1::1} != "/" ]]; then | ||
FULLURL="${FULLURL}/" | ||
fi | ||
|
||
FULLURL="${FULLURL}${1}" | ||
fi | ||
|
||
if [ "${DDEV_DEBUG:-}" = "true" ]; then | ||
printf "FULLURL $FULLURL\n" && exit 0 | ||
fi | ||
|
||
case $OSTYPE in | ||
linux-gnu) | ||
if [[ ! -z "${GITPOD_INSTANCE_ID}" ]]; then | ||
gp preview ${FULLURL} | ||
else | ||
xdg-open ${FULLURL} | ||
fi | ||
;; | ||
"darwin"*) | ||
open ${FULLURL} | ||
;; | ||
"win*"* | "msys"*) | ||
start ${FULLURL} | ||
;; | ||
esac |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.