-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.env.sh
executable file
·102 lines (79 loc) · 3.23 KB
/
example.env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# WordPress Scripts Environment
#
# Local environmental config for Connor Bär WordPress scripts
#
# @author Connor Bär
# @copyright Copyright (c) 2017 Connor Bär
# @link https://madebyconnor.co/
# @package wordpress-scripts
# @since 1.0.0
# @license MIT
#
# This file should be renamed to '.env.sh' and it should reside in the
# `scripts` directory. Add '.env.sh' to your .gitignore.
# -- GLOBAL settings --
# What to prefix the database table names with
GLOBAL_DB_TABLE_PREFIX="wp_"
# The path of the `wp-admin` folder, relative to the root path; paths should always have a trailing /
GLOBAL_WP_PATH="wp-admin/"
# The path of the `wp-content` folder, relative to the root path; paths should always have a trailing /
GLOBAL_ASSETS_PATH="wp-content/"
# The maximum age of backups in days; backups older than this will be automatically removed
GLOBAL_DB_BACKUPS_MAX_AGE=90
# -- LOCAL settings --
# Local path constants; paths should always have a trailing /
LOCAL_ROOT_PATH="REPLACE_ME"
LOCAL_PROJECT_PATH="REPLACE_ME"
LOCAL_ASSETS_PATH=${LOCAL_ROOT_PATH}${GLOBAL_ASSETS_PATH}
# Local user & group that should own the WordPress install
LOCAL_CHOWN_USER="admin"
LOCAL_CHOWN_GROUP="apache"
# Local asset directories relative to LOCAL_ASSETS_PATH that should be writeable by the $CHOWN_GROUP and that should be synched with remote assets
LOCAL_ASSETS_DIRS=(
"plugins"
"themes"
"uploads"
)
# Local database constants
LOCAL_DB_NAME="REPLACE_ME"
LOCAL_DB_PASSWORD="REPLACE_ME"
LOCAL_DB_USER="REPLACE_ME"
LOCAL_DB_HOST="localhost"
LOCAL_DB_PORT="3306"
# If you are using mysql 5.6.10 or later and you have `login-path` setup as per:
# https://opensourcedbms.com/dbms/passwordless-authentication-using-mysql_config_editor-with-mysql-5-6/
# you can use it instead of the above LOCAL_DB_* constants; otherwise leave this blank
LOCAL_DB_LOGIN_PATH=""
# The `mysql` and `mysqldump` commands to run locally
LOCAL_MYSQL_CMD="mysql"
LOCAL_MYSQLDUMP_CMD="mysqldump"
# Local backups path; paths should always have a trailing /
LOCAL_BACKUPS_PATH="REPLACE_ME"
# Local site url
LOCAL_SITE_URL="REPLACE_ME"
# -- REMOTE settings --
# Remote ssh credentials, [email protected] and Remote SSH Port
REMOTE_SSH_LOGIN="REPLACE_ME"
REMOTE_SSH_PORT="22"
# Remote path constants; paths should always have a trailing /
REMOTE_ROOT_PATH="REPLACE_ME"
REMOTE_ASSETS_PATH=${REMOTE_ROOT_PATH}${GLOBAL_ASSETS_PATH}
# Remote database constants
REMOTE_DB_NAME="REPLACE_ME"
REMOTE_DB_PASSWORD="REPLACE_ME"
REMOTE_DB_USER="REPLACE_ME"
REMOTE_DB_HOST="localhost"
REMOTE_DB_PORT="3306"
# If you are using mysql 5.6.10 or later and you have `login-path` setup as per:
# https://opensourcedbms.com/dbms/passwordless-authentication-using-mysql_config_editor-with-mysql-5-6/
# you can use it instead of the above REMOTE_DB_* constants; otherwise leave this blank
REMOTE_DB_LOGIN_PATH=""
# The `mysql` and `mysqldump` commands to run remotely
REMOTE_MYSQL_CMD="mysql"
REMOTE_MYSQLDUMP_CMD="mysqldump"
# Remote backups path; paths should always have a trailing /
REMOTE_BACKUPS_PATH="REPLACE_ME"
# Remote Amazon S3 bucket name
REMOTE_S3_BUCKET="REPLACE_ME"
# Remote Dropbox path; paths should always have a trailing /
REMOTE_DROPBOX_PATH="REPLACE_ME"