Skip to content

Build & Deploy WPGET

Daniele Fontani edited this page Jan 25, 2018 · 3 revisions

Build WpGet

Build process is integrated with Circle CI. Circle CI script install a docker container and run the build script. This do the following:

  • install node (missing in php image)
  • run node to execute a build using prod environment. This will create /web/ui folder, with compiled angular application
  • unuseful folder are deleted to deliver only the necessary
  • install.lock is deleted if present (it shouldn't be committed)
  • setup.json in bundle already contains installed=false flag that run application in install mode at first time
  • settings.php used in development already should contains value compatible with setup ( many settings have to be fixed during setup)

setup process

After user tuned the settings.php UI will redirect to /api/install path. This will check if install.lock file is present. If not, try to install application. Firstly install script check for write permission on paths. if wpget is not able to write on basic path installation stops. Basing on settings and running values settings.json is produced into /ui/assets folder. This file contains settings for UI and cannot be changed manually. if needed you can remove install.lock and re-run install process again: file will be regenerated.

Steps:

  1. file system check
  2. database initialization
  3. settings files generation
  4. install.lock creation

note:For installation process only some folder require temporary write permission. Such file can be changed later.