Skip to content

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

License

Notifications You must be signed in to change notification settings

Ambient-Impact/drupal-digitalocean-function-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages