-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-sample.yml
91 lines (84 loc) · 2.86 KB
/
config-sample.yml
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
# 共通の設定
xserver_host_name: "username.xsrv.jp"
xserver_user_name: "username"
xserver_db_host: "mysqlxxxx.xserver.jp"
xserver_db_user: "db_user_name_here"
xserver_db_password: "db_password_here"
ssh_key_file_path: "~/.ssh/id_rsa"
# cronの実行時間を設定
# この設定の場合、毎日0:30に実行される
cron_hour: 0
cron_minute: 30
# cronを設定する場合はtrue 必要ない場合はfalse
cron_enable: true
# WordPressの変数を設定
# 辞書配列として同様に設定を追加していけばサイトが作成されます。
wordpress_info:
# 環境名など
- setting_name: "本番環境"
# WordPressをインストールするディレクトリ
directory: "production"
# さくらの管理画面で設定したデータベース名
db_name: "user_name_production"
# テーブルの接頭辞
db_prefix: "wp_production_"
# 管理者のユーザ名
admin_user_name: "enter_admin_name"
# 管理者のパスワード
admin_password: "enter_admin_password"
# 管理者のメールアドレス
admin_mail: "test@example.com"
# サイトのURL
site_url: "http://user_name.sakura.ne.jp/production"
# サイトのタイトル
site_title: "WordPress demo site production"
# wp-config.phpに追記される文字列
extra_php: |
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'DISALLOW_FILE_EDIT',true );
# テストデータを挿入する場合は true そうでない場合はfalse
test_data: false
# サイトURLを変更した際にwp search-replaceを実行する場合はtrue、しない場合はfalse
search_replace: false
# 環境にいれるプラグインを設定
plugins:
- show-current-template
# - setting_name: "ステージング環境"
# directory: "staging"
# db_name: "user_name_staging"
# db_prefix: "wp_staging_"
# admin_user_name: "enter_admin_name"
# admin_password: "enter_admin_password"
# admin_mail: "test@example.com"
# site_url: "http://user_name.sakura.ne.jp/staging"
# site_title: "WordPress demo site staging"
# extra_php: |
# define( 'WP_DEBUG', true );
# define( 'WP_DEBUG_LOG', true );
# define( 'DISALLOW_FILE_EDIT',true );
# test_data: false
# plugins:
# - show-current-template
# 本番、ステージング両方の環境に入るプラグイン
common_plugins:
# セキュリティ関連
- all-in-one-wp-security-and-firewall
- walti
# 問い合わせ関連
- contact-form-7
- flamingo
- cf7-invisible-recaptcha
- wp-mail-smtp
# SEO関連
- google-sitemap-generator
- all-in-one-seo-pack
# その他おすすめ
- tinymce-advanced
- wp-multibyte-patch
- wp-total-hacks
- broken-link-checker
- all-in-one-wp-migration
- sakura-rs-wp-ssl
# 動作未確認だが有用そう
# - ip-geo-block