-
-
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.
- Loading branch information
Showing
6 changed files
with
45 additions
and
14 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,22 @@ | ||
#!/bin/sh | ||
|
||
# Banner Message shell script | ||
# | ||
# Display a banner message to let the user know the environment is ready for use | ||
# | ||
# @author nystudio107 | ||
# @copyright Copyright (c) 2023 nystudio107 | ||
# @link https://nystudio107.com/ | ||
# @license MIT | ||
|
||
# Rewrite the PRIMARY_SITE_URL env var if we're running in Codespaces | ||
if [[ ! ${CODESPACES:-"unset"} == "unset" ]]; then | ||
export PRIMARY_SITE_URL="https://${CODESPACE_NAME}-${DEV_SERVER_PORT}.preview.app.github.dev/" | ||
fi | ||
# Banner message | ||
sleep 1 | ||
echo "### Your Craft site is ready!" | ||
echo "Frontend URL: ${PRIMARY_SITE_URL}" | ||
echo "CP URL: ${PRIMARY_SITE_URL}admin" | ||
echo "CP User: ${CRAFT_CP_USER}" | ||
echo "CP Password: ${CRAFT_CP_PASSWORD}" |
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
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