Skip to content

Instantly share code, notes, and snippets.

@mattheu
Last active December 31, 2015 22:49
Show Gist options
  • Save mattheu/8056370 to your computer and use it in GitHub Desktop.
Save mattheu/8056370 to your computer and use it in GitHub Desktop.
Instructions for setting up the WP Remote API Demo app locally.

Salty WordPress expects the public directory to be the project root, however The WP Remote API Demo app has the public facing site in the build directory. You will need to modify the default nginx config file to get it working.

In the Salty WordPress directory, edit config/salt/config/nginx/default

Immediately before this section...

if ( !-d /srv/www/$root ) {
        set $root 'default';
}

... add the following code snippet

if ( -d /srv/www/$root/build ) {
        set $root '${root}/build';
}

Save the file and run vagrant provision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment