Code Monkey home page Code Monkey logo

processwire-core's Introduction

ProcessWire Core 3.x

This documentation details the workflow for ProcessWire sites.

Table of Contents

  1. Installation
  2. Local Development
  3. Upgrading
  4. Troubleshooting
  5. Support

Learn more


Installation

Install the LTS Version of node.js and npm

sudo apt install nodejs npm

Navigate to installation directory folder and execute the installer within the folder.

npx pw-installer

enter image description here

Local Development

Using Local WP

  1. Install Local WP
  2. Create a new site from a blueprint or blank template
  3. Open site folder, and delete the Wordpress installation
  4. Run the installation CLI command in the app/public directory npx pw-installer
  5. Open the site and complete the ProcessWire install.

Hot Reload πŸ”₯

You can use hot reload to automatically reload the browser when you make changes to your files. This is done by using a proxy server that watches for changes in your files and reloads the browser when a change is detected. This is useful for development, but not recommended for production.

To enable hot reload, install the templates dependencies with node package manager (npm).

npm install

Then run the hot reload command

npm run hot

This will start the proxy server and open the browser. You can now make changes to your files and the browser will automatically reload when a change is detected. This will not reload the domain set in Local WP, so you will need to manually refresh the browser.

Using Lando & Docker 🚧

First install Lando & Docker API reference so that you can create the LAMP stack container. From the root of the project public/ run the command lando start to initialize the docker container & image or to start an existing docker instance.

Upgrading ProcessWire

Upgrading is easy and usually just a matter of replacing your /wire/ directory with the one from the new version. But to be safe, before proceeding with any version upgrade, please see the Upgrading ProcessWire guide and perhaps keep it open during your upgrade in case you need to refer back to it.

When upgrading from one 3.x version to another, please use the general upgrade process. This consists primarily of making sure you've got everything backed up and then just replacing your /wire/ directory with the one from the newer version.

Pro module version upgrade notes (if applicable)

  • FormBuilder version 0.5.3 or newer recommended.

  • ListerPro version 1.1.5 or newer recommended.

  • ProFields the latest versions of all ProFields (10 modules) are recommended.

  • LoginRegisterPro version 7 or newer recommended.

  • ProCache version 4.0.3 or newer recommended. After upgrading, go to your ProCache settings in the admin (Setup > ProCache) and see if it suggests any modifications to your .htaccess file.

  • For all other Pro modules not mentioned above we recommend using the latest available versions when possible.

Debug Mode

Debug mode causes all errors to be reported to the screen. This can be helpful during development or troubleshooting. When in the admin, it also enables a β€œDebug” link (see footer) for reporting of extra information in a panel. Debug mode is not intended for live or production sites, as the information reported is for the developer only. Do not leave debug mode on for any live/production sites, as it could be a security concern. However, we think you'll find it very handy during development or when resolving issues.

  1. Edit this file: /site/config.php
  2. Find this line: $config->debug = false;
  3. Change the false to true like below, and save.
$config->debug = true; 

This can be found near the bottom of the file, or you can add it if not already there. It will make PHP and ProcessWire report all errors, warnings, notices, etc. Of course, you'll want to set it back to false once you've resolved any issues.

Support and Links


processwire-core's People

Contributors

ryntab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.