一般的な質問
Question AStaging Site
How can I set up a staging site for my new site?
How can I set up a staging site for my new site?
AnswerWhen creating a staging site or just a copy of your existing site for testing or basically any reason, there are a few rules we strongly encourage users to follow.
- Avoid Nesting: In order to avoid possible conflicts between your sites, it is important to separate your sites into completely separate folders. For example, if you have a production site and a staging site, the layout might look something like this where the public_html folder is your web server’s root path.
/public_html/production_site/[worpress site 1 file/folders here]
/public_html/staging_site/[worpress site 2 file/folders here]注意:staging_siteをproduction_siteディレクトリ内またはその下に配置しないでください
- データベースの分離:各サイトに個別のデータベースを作成する必要があります。たとえば、本番サイト用にprod_dbという名前のデータベースを作成し、ステージングサイト用にstage_dbという名前の別のデータベースを作成します。両方のサイトで同じデータベースを使用しようとしないでください。
- ステージングサイトの全体像については、投稿「WordPressステージングサイトの作成方法」を参照してください。