GithubHelp home page GithubHelp logo

ambient-impact / drupal-digitalocean-function-cron Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

DigitalOcean Function to ping a Drupal cron URL via scheduled triggers.

License: GNU General Public License v2.0

PHP 100.00%
digitalocean digitalocean-functions drupal php

drupal-digitalocean-function-cron's Introduction

DigitalOcean Function to ping a Drupal cron URL via scheduled triggers.

Configuring and Deploying

The easiest way to deploy this is to install and configure doctl. Then, check out this repository. Next, create a .env file in the root of the repository with the contents:

CRON_URL=YOUR_URL

Where YOUR_URL is the cron URL Drupal offers you on the /admin/config/system/cron page of the site you want to ping the cron of. Note that it's also possible to place this file elsewhere and use the --env flag when running doctl serverless deploy.

Before you can deploy your function, you'll need to create a namespace either via the control panel or via doctl.

Once you have a namespace, connect to it:

doctl serverless connect

Now doctl knows where to deploy the function. To do so, run:

doctl serverless deploy /path/to/repository

Where /path/to/repository is either the absolute path to the folder containing this readme or a relative path to the current directory. For more information, see the documentation for doctl serverless deploy.

drupal-digitalocean-function-cron's People

Contributors

ambient-impact 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.