Skip to content

Make Local instructions less environment-specific #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: docs
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions bedrock/bedrock-with-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ WP_HOME='https://bedrock.local'

## Set the webroot in Local's site config

Local's site config is located at `~/Local Sites/bedrock/conf/nginx/site.conf.hbs`. Open this file and replace `{{root}}` with the full path to Bedrock's web directory:
Local's site config is located at `~/Local Sites/bedrock/conf/nginx/site.conf.hbs`. Open this file and append `/web` to the server root:

```diff
server {
listen {{port}};
- root "{{root}}";
+ root "/Users/username/Local Sites/bedrock/app/bedrock/web";
+ root "{{root}}/web";
```

In the example above, the full path is based on a macOS machine and requires the username to be changed to the one you are using. You will need to modify this path for Windows and Linux setups to reflect the full path to the `app/bedrock/web` directory.

You will need to restart your site after making these changes, and then your site will be accessible at `https://bedrock.local`.