Skip to content

DekodeInteraktiv/localwp-projectbase-addon

Repository files navigation

Project Base LocalWP Addon.

A helper addon for LocalWP.

image

Features

Multisite Config fixer.

Updates the nginx config to support our project base multisite setup.

Convert to multisite

Adds a button to convert site to multiste sub directory setup, you should be able to setup subdomains with this setup also.

Root Path.

Adds a input field to change the projects root path. Often legacy projects requires you to have a root path like this: "{{root}}/web" etc.

Absolute path should also work. like this: "/Users/username/Sites/project-name/web"

Remote Images through NGINX config.

This allows you to type in the production url and it will use that url to fetch images.

Installation

  • Download the .tar.gz file from the releases page.
  • Go to LocalWP and press the "Addons" tab in the sidebar.
  • Press the "Installed" tab.
  • Then click the "Install from disk" button at the top right.
  • Activate and relaunch localWP.

Development

  • Use Node v16
  • npm install installs dependencies.
  • npm start Starts the renderer process.
  • npm start:main Starts the main.ts process.

Useful Links