You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Have Terminus installed on your computer first

https://pantheon.io/docs/terminus/install/

 

Test

If you want to get the time of last sync (in Unix Timestamp format)
terminus wp cornell-alumni.test -- option get cornell_events_last_sync

To set the last sync time to sync events from an earlier date (in Unix Timestamp format)
terminus wp cornell-alumni.test -- option update cornell_events_last_sync 1510185600

To turn cron off (should be done before running manual sync)
terminus wp cornell-alumni.test -- cornell events cron --off

To turn cron back on
terminus wp cornell-alumni.test -- cornell events cron --on

To run a full sync, imports all events from the last sync time
terminus wp cornell-alumni.test -- cornell events sync --all

Live

 

 

-------- Original Message --------

Subject:

Instructions for Terminus

Date:

Mon, 20 Nov 2017 15:10:46 -0500

From:

Jay Hoffmann <jay@reaktivstudios.com>

To:

Josh Eaton <josh@reaktivstudios.com>

 

Everytime a sync is run either through Terminus or Cron, the last sync time is automatically updated with the time of that the sync began. If the plan is to run events sync manually for now, it would be best to just disable cron entirely for events (command below) and then reset the last_sync time back to the date of our last manual sync for that first run, which is November 9, 2017, Unix timestamp 1510185600. Any events that have already been added will simply be skipped. Then just run the manual sync command and it will automatically sync just the latest events

 

If you want to get the time of last sync (in Unix Timestamp format)

terminus wp cornell-alumni.live -- option get cornell_events_last_sync

 

To set the last sync time to sync events from an earlier date (in Unix Timestamp format)

terminus wp cornell-alumni.live -- option update cornell_events_last_sync 1510185600

 

To turn cron off (should be done before running manual sync)

terminus wp cornell-alumni.live -- cornell events cron --off

 

To turn cron back on

terminus wp cornell-alumni.live -- cornell events cron --on

 

To run a full sync, imports all events from the last sync time

terminus wp cornell-alumni.live -- cornell events sync --all

  • No labels