Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit 44d5368

Browse files
committed
Add .env for deployer setup
Merge branch 'iamShantanu101-master'
2 parents de375f8 + 6f69f76 commit 44d5368

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

‎multiple-sites/.env.deployer‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
DB_NAME=database_name
2+
DB_USER=database_user
3+
DB_PASSWORD=database_password
4+
5+
# Optional variables
6+
DB_HOST=mysql
7+
# DB_PREFIX=wp_
8+
9+
WP_ENV=development
10+
WP_HOME=http://example.com
11+
WP_SITEURL=${WP_HOME}
12+
13+
# Generate your keys here: https://roots.io/salts.html
14+
AUTH_KEY='generateme'
15+
SECURE_AUTH_KEY='generateme'
16+
LOGGED_IN_KEY='generateme'
17+
NONCE_KEY='generateme'
18+
AUTH_SALT='generateme'
19+
SECURE_AUTH_SALT='generateme'
20+
LOGGED_IN_SALT='generateme'
21+
NONCE_SALT='generateme'
22+
WP_CACHE_KEY_SALT='example.com:' #trailing `:` is important
23+

‎multiple-sites/setup.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pushd /var/www > /dev/null 2>&1
6060
ls -al
6161
sed -i "s/\(VIRTUAL_HOST: \)\(site1.test\)/1円$project_name/; s/\(VIRTUAL_HOST: \)\(mail.site1.test\)/1円mail.$project_name/; s/\(name: \)\(.*\)/1円$project_name/" docker-compose.yml
6262
if [[ "$deployment_method" == "deployer" ]]; then
63+
mv .env.deployer wordpress/.env
6364
sed -i 's#html#html/current#' config/nginx/default.conf
6465
sed -i '30a \ entrypoint: ["/bin/bash", "-c"]\n command: ["php-fpm"]' docker-compose.yml
6566
fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /