-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwordpress.yml
More file actions
23 lines (21 loc) · 860 Bytes
/
wordpress.yml
File metadata and controls
23 lines (21 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
source: https://wordpress.org/latest.zip#wordpress
features:
- mysql
nginx:
root: public_html
fastcgi: "on"
locations:
- match: /
try_files: $uri $uri/ /index.php$is_args$args
- match: ~ /xmlrpc\.php$
deny: all
commands:
- cp wp-config-sample.php wp-config.php
- sed -i "s/database_name_here/${DATABASE}/g" wp-config.php
- sed -i "s/username_here/${USERNAME}/g" wp-config.php
- sed -i "s/password_here/${MYPASSWD}/g" wp-config.php
# install WP CLI
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- mkdir -p ~/.local/bin && mv wp-cli.phar ~/.local/bin/wp && chmod +x $_
# To bypass the WordPress installation wizard, uncomment this line
# - wp core install --url=${DOMAIN} --title="My WordPress Site" --admin_user=admin --admin_password=${PASSWORD} --admin_email=admin@${DOMAIN}