forked from nystudio107/craft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.env.sh
51 lines (40 loc) · 1.53 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
# Craft 3 Scripts Environment
#
# Local environmental config for nystudio107 Craft scripts
#
# @author nystudio107
# @copyright Copyright (c) 2020 nystudio107
# @link https://nystudio107.com/
# @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 --
# The database driver for this Craft install ('mysql' or 'pgsql')
GLOBAL_DB_DRIVER="mysql"
# -- LOCAL settings --
LOCAL_DB_CONTAINER="REPLACE_ME"
LOCAL_BUILDCHAIN_CONTAINER="REPLACE_ME"
# -- REMOTE settings --
# Remote ssh credentials, [email protected] and Remote SSH Port
REMOTE_SSH_LOGIN="REPLACE_ME"
REMOTE_SSH_PORT="22"
# Should we connect to the remote database server via ssh?
REMOTE_DB_USING_SSH="yes"
# Remote database constants; default port for mysql is 3306, default port for postgres is 5432
REMOTE_DB_NAME="REPLACE_ME"
REMOTE_DB_PASSWORD="REPLACE_ME"
REMOTE_DB_USER="REPLACE_ME"
REMOTE_DB_HOST="localhost"
REMOTE_DB_PORT="3306"
REMOTE_DB_SCHEMA="public"
# 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"
# The `psql` and `pg_dump` commands to run remotely
REMOTE_PSQL_CMD="psql"
REMOTE_PG_DUMP_CMD="pg_dump"