Created
October 17, 2022 10:15
-
-
Save andriilive/3f869b3c2e15b0c1bbe016ad9cffdf67 to your computer and use it in GitHub Desktop.
GitPod WP Minimal
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
FROM gitpod/workspace-full | |
# Install composer deps | |
RUN brew install php@8.0 wp-cli && brew unlink php && brew link php@8.0 # sudo install-packages adminer |
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
image: | |
file: .gitpod.Dockerfile | |
github: | |
prebuilds: | |
master: true | |
branches: true | |
# enable for all branches in this repo (defaults to false) | |
addCheck: true | |
ports: | |
- port: 8080 | |
onOpen: open-browser | |
- port: 3306 | |
onOpen: notify | |
tasks: | |
- name: "Composer install" | |
init: composer install && cp config/envs/gitpod/.env .env && sed -i "s|WP_HOME=|WP_HOME=${GITPOD_WORKSPACE_URL}|g" .env && sed -i "s|WP_HOME=https://|WP_HOME=https://8080-|g" .env | |
command: wp server --host=0.0.0.0 --port=8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment