Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
}
}
71 changes: 71 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Configuration for the Ideas On Purpose WordPress Docker environment,
# more info here: https://github.com/ideasonpurpose/docker-wordpress-dev


SSH_KEY_PATH=
# SSH_KEY_PATH should be set to the local path to your private key. For example,
# if you have public key named `id_rsa_deploy.pub` associated with your managed
# WordPress account, SSH_KEY_PATH should point to the pair's matching private
# key like this: SSH_KEY_PATH="~/.ssh/id_rsa_deploy"


SSH_LOGIN=
# SSH_LOGIN should be set to the SSH Login string from WP Engine's or Kinsta's
# admin backend. They should look something like this:
# - wpengine: "iop001@iop001.ssh.wpengine.net"
# - kinsta: "ssh iop001@11.22.33.44 -p 54321"
# In the above examples the elements map like this:
# `${SSH_USER}@${SSH_HOST}`
# Each item can also be entered individually, and individual entries will take
# precedence over components extracted from SSH_LOGIN.
# Values should be quoted for compatibility with Docker Compose v2.x


SSH_USER=
# The user account which connects to the server. For WP Engine, this matches the
# environment name.


SSH_HOST=
# The server address to connect to.


SSH_PORT=
# The server port listening for SSH connections


SSH_WP_CONTENT_DIR=
# default: sites/${SSH_USER}/wp-content
# SSH_WP_CONTENT_DIR is the path to the wordpress wp-content directory. This will
# most likely match the `WP_CONTENT_DIR` WordPress constant and does not include
# a trailing slash.
# Path can be relative to the SSH user home folder or an absolute path.
# Examples:
# - wpengine: sites/${SSH_USER}/wp-content
# - kinsta: public/wp-content


DATA_MODEL_PLUGIN=
BLOCKS_PLUGIN=
# Additional development plugins can be mounted into the WordPress environment as
# individual volumes. The local relative path to the working plugin directory should
# be pointed to the absolute path inside the container. In the following example,
# a data-model plugin is being developed in a sibling directory to the theme:
#
# DATA_MODEL_PLUGIN="../example-plugin:/var/www/html/wp-content/plugins/example-plugin"


WORDPRESS_DEBUG=1
# This is used to set the WP_DEBUG constant to toggle WordPress debugging.
# .env vars are imported as strings, so true/false will not work correctly.
# PHP does correctly coerce the integers 0 and 1 to their corresponding boolean values.
# PHP interprets the number 0 as a string to boolean false
# Leave this value blank or set it to 0 to disable WP_DEBUG
# Setting this to 1, true or any other non-empty string enables WP_DEBUG


WP_ENVIRONMENT_TYPE=
# Blank or one of 'production', 'staging' or 'development'. For IOP's development
# environments, this value defaults to 'development'. Otherwise WordPress defaults
# to 'production'. Documentation:
# https://developer.wordpress.org/reference/functions/wp_get_environment_type/
182 changes: 177 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,178 @@
node_modules
logs
wp-content
!wp-content/themes
wp-content/themes/twenty*
# Managed WordPress Hosting .gitignore file for ignoring WordPress files
#
# Most recent revision here:
# https://gist.github.com/joemaller/4f7518e0d04a82a3ca16
#
# Raw Source (for curl):
# https://gist.githubusercontent.com/joemaller/4f7518e0d04a82a3ca16/raw
#
# Used by these WordPress Development environments:
# https://github.com/ideasonpurpose/docker-wordpress-dev
# https://github.com/ideasonpurpose/basic-wordpress-vagrant (deprecated)
#
# Originally based on WP Engine's gitignore files:
# https://wpengine.com/support/using-git-on-sites-with-legacy-staging/#ignore
# https://wpengine.com/wp-content/uploads/2013/10/recommended-gitignore-no-wp.txt

# environment vars
.env

# temp files, OS junk and dotfiles
*.bak
*.swp
*.tmp
*~
.cvs
.DS_Store
.listing
.svn
Thumbs.db

# wp core (as of 4.6)
/db-config.php
/index.php
/license.txt
/readme.html
/wp-activate.php
/wp-admin
/wp-app.php
/wp-atom.php
/wp-blog-header.php
/wp-comments-post.php
/wp-commentsrss2.php
/wp-config-sample.php
/wp-content/index.php
/wp-content/themes/index.php
/wp-content/themes/twenty*
/wp-cron.php
/wp-feed.php
/wp-includes
/wp-links-opml.php
/wp-load.php
/wp-login.php
/wp-mail.php
/wp-pass.php
/wp-rdf.php
/wp-register.php
/wp-rss.php
/wp-rss2.php
/wp-settings.php
/wp-signup.php
/wp-trackback.php
/xmlrpc.php

# wordpress config, user-content and caches
cache/
sitemap.xml
sitemap.xml.gz
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir
wp-content/cache/
wp-content/cache/supercache/
wp-content/managewp/
wp-content/upgrade/
wp-content/uploads/
wp-content/wp-cache-config.php

# WordPress debugging files & logs
*.log
debug.log
log.txt
logs/

# Third-party files and leftovers
gt-cache/
ics-importer-cache/
imagecache.*
pclzip-*.gz
wp-content/w3-.*
wp-content/w3tc.*
gallery/*
album/*

# wpengine specific
.smushit-status
_wpeprivate
wp-content/advanced-cache.php
wp-content/object-cache.php

# flywheel specific
wp-content/flywheel-config/

# large/disallowed file types
# a CDN should be used for these
*.3gp
*.3gpp
*.asf
*.asx
*.avi
*.bin
*.deb
*.dll
*.dmg
*.exe
*.flv
*.hqx
*.img
*.iso
*.kar
*.m4a
*.m4v
*.mid
*.midi
*.mng
*.mov
*.mp3
*.mp4
*.mpeg
*.mpg
*.msi
*.msm
*.msp
*.ogg
*.ra
*.webm
*.wmv

# don't commit database dumpfiles
*.sql
*.sql.gz
*.sql.tgz
*.sql.zip

# npm and composer dependencies
node_modules/
vendor/

# Let's try ignoring sourcemaps
*.css.map
*.js.map

# basic-wordpress-vagrant v0.3.0 added links to Kint and XHProf. Ignore them
/kint
/xhprof

# Moving away from Git-deploys, exclude generated artifacts
/_builds/
/builds
dist/

# Webpack Stats & profiler
/webpack

# Ignore all plugins
wp-content/plugins
wp-content/mu-plugins

# I have not yet wanted these files in project history
*.code-workspace

# Docker experiments
_log/
_profiler/

# WSL 2 Cruft
*:Zone.Identifier
Loading