A simple script to wake up a sleeping site environment.

Installs: 259

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:quicksilver-script

v1.0.8 2021-10-29 09:18 UTC

This package is auto-updated.

Last update: 2024-11-29 06:10:58 UTC


README

This is simple script that can be used to wake up a site environment by pinging the public URL before running any other Quicksilver scripts.

Installation

This project is designed to be included from a site's composer.json file, and placed in its appropriate installation directory by Composer Installers.

In order for this to work, you should have the following in your composer.json file:

{
  "require": {
    "composer/installers": "^1"
  },
  "extra": {
    "installer-paths": {
      "web/private/scripts/quicksilver": ["type:quicksilver-script"]
    }
  }
}

The project can be included by using the command:

composer require pantheon-quicksilver/wakeup

Example pantheon.yml

api_version: 1

workflows:
  sync_code:
    after:
      - type: webphp
        description: Wakeup!
        script: private/scripts/quicksilver/pantheon-quicksilver/wakeup.php