2.16.5 • Published 2 months ago

@whitespace/flightplan v2.16.5

Weekly downloads
-
License
None
Repository
-
Last release
2 months ago

Whitespace Flightplan

Flightplan presets for Whitespace’s sites

Example usage

// flightplan.js

const plan = require("flightplan");
const { configure } = require("@whitespace/flightplan/municipio");

const config = {
  keepReleases: 5,
  dumpFolder: "~/dumps/",
  projectName: "eslov",
  themes: ["eslov-wp-theme"],
  filesAndFolders: [
    // Additional files to transfer
  ],
  ignoredFilesAndFolders: [
    // Files to NOT transfer
  ],
};

plan.target(
  "prod",
  {
    host: "eslov.se",
    username: "whitespace",
    agent: process.env.SSH_AUTH_SOCK,
  },
  {
    dir: "/srv/www/eslov.se",
    user: "web",
    domain: "https://eslov.se",
    phpVersion: "php7.4", // Providing this will reload the PHP service after deploy
  },
);

configure(plan, config);

Available setups

@whitespace/flightplan/bedrock

Use this for Wordpress sites that’s been set up using Roots Bedrock. These sites use a /.env file for config, vendor files are in the /vendor and /web/wp folders and site-specific code is in /web/app.

@whitespace/flightplan/municipio

Use this for Municipio Wordpress sites. These sites store config in the /config directory, vendor files in the /vendor and /wp folders and site-specific code is in /wp-content.

@whitespace/flightplan/matomo

Use this for Matomo sites. These sites store config in the /web/config/config.ini.php file.

Extending config

Here is an example, from mi.se, of how we extend one of the available setups:

plan.remote("deploy", function (remote) {
  let { dir, user } = plan.runtime.options;

  remote.sudo(`cd ${dir}/current/web && wp ws wp_groups_file --allow-root`, {
    user,
    failsafe: true,
  });
});
plan.remote("rollback", function (remote) {
  let { dir, user } = plan.runtime.options;

  remote.sudo(`cd ${dir}/current/web && wp ws wp_groups_file --allow-root`, {
    user,
    failsafe: true,
  });
});
2.16.5

2 months ago

2.16.3

2 months ago

2.16.4

2 months ago

2.16.2

2 months ago

2.16.1

11 months ago

2.16.0

12 months ago

2.15.4

1 year ago

2.15.2

1 year ago

2.12.5

2 years ago

2.15.3

1 year ago

2.15.0

1 year ago

2.13.2

2 years ago

2.12.3

2 years ago

2.15.1

1 year ago

2.13.3

2 years ago

2.12.4

2 years ago

2.13.0

2 years ago

2.12.1

2 years ago

2.14.0

2 years ago

2.13.1

2 years ago

2.12.2

2 years ago

2.11.0

2 years ago

2.10.1

2 years ago

2.12.0

2 years ago

2.11.1

2 years ago

2.10.0

2 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.7.1

3 years ago

2.6.3

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.0.0

4 years ago