forked from next-press/caesar
-
Notifications
You must be signed in to change notification settings - Fork 0
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
20 changed files
with
1,178 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
FROM wordpress:latest | ||
|
||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | ||
|
||
RUN chmod +x wp-cli.phar | ||
|
||
RUN mv wp-cli.phar /usr/local/bin/wp | ||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | ||
&& chmod +x wp-cli.phar \ | ||
&& mv wp-cli.phar /usr/local/bin/wp | ||
|
||
RUN yes | pecl install xdebug | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d | ||
|
||
COPY htaccess-single /usr/src/wordpress/.htaccess-single | ||
|
||
COPY htaccess-subdir /usr/src/wordpress/.htaccess-subdir | ||
|
||
COPY htaccess-subdomain /usr/src/wordpress/.htaccess-subdomain | ||
COPY . . |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,24 @@ | ||
#!/usr/bin/env bash | ||
# set -x | ||
|
||
. ${LIB_PATH}/scripts/lib/func.sh | ||
|
||
start_spinner "Taking it down..."; | ||
|
||
caesar down $1 &> /dev/null | ||
|
||
DOWN=$? | ||
|
||
stop_spinner $DOWN | ||
|
||
if [ $DOWN -eq 0 ]; then | ||
|
||
caesar up $1 | ||
|
||
else | ||
|
||
pd "Unable to take containers down... You will need to do it by hand first." | ||
|
||
exit 1; | ||
|
||
fi |
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,28 @@ | ||
#!/usr/bin/env bash | ||
# set -x | ||
|
||
. ${LIB_PATH}/scripts/lib/func.sh | ||
|
||
if [ -n "$1" ]; then | ||
SLUG=$1 | ||
else | ||
. "${CWD_PATH}/.env" > /dev/null 2>&1 | ||
fi | ||
|
||
SLUG=$(${LIB_PATH}/scripts/lib/slugify $SLUG 2> /dev/null) | ||
|
||
CONTAINER=${2:-wordpress} | ||
|
||
pdns "Entering container ${CONTAINER} for ${SLUG}... (type 'exit' to return to the main shell)" | ||
|
||
echo "" | ||
|
||
let column=$(tput cols) | ||
|
||
# printf "%${column}s" | ||
printf "%0.s-" $(seq 1 $column) | ||
|
||
echo "" | ||
echo "" | ||
|
||
docker exec -it "caesar-${SLUG}-${CONTAINER}" sh |
Oops, something went wrong.