• Resolved Jon D. Anetto

    (@jondane)


    Is it possible to use Simply Static without logging in to WordPress everytime after a new post has been published, like using a shell script or so and then deploying the static files via rsync? I have accomplished the following steps: 1) post via email 2) -> .qmail calls wp-mail.php 3.) -> post is being published 4.) manually log in to wordpress, press ‘Generate’ in Simply Static 5.) ->output in local folder with generated static files is being copied to the destination folder via rsync. Tada.

    So i am looking for a way to automatize step 4. Hm…

    • This topic was modified 9 years, 9 months ago by Jon D. Anetto.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Jon,

    Presently, no, there’s not really a good way to automate the usage of Simply Static. It is something I plan to add in the future, but I don’t have an ETA for when that would be.

    Best,
    Scott

    Hi Jon,

    I’m no expert, but I guess that you can accomplish that with http://wp-cli.org/,, take a peek on this custom commands page: https://wp-cli.org/docs/internal-api/wp-cli-add-command/ I guess that you have to add command and you can execute it in shell before rsync-ing it..

    If you manage to do it share it here please 🙂

    cheers, k

    Thread Starter Jon D. Anetto

    (@jondane)

    Hey Kresimir,

    thanks for your tip! Seems great to manage a (or many) WP installation without the trouble of logging in every time, but i could not find a solution to the problem on the first glance i took at wp-cli. I guess one must extract the “generate”-command or the exact command which is executed when the “Generate” button of Simply Static is pressed and “translate” it to a corresponding wp-cli command, but i have no clue how to do that, somehow this would be possible via the scaffolding regarding Simply Static (not yet at least – dunno if and when i have time to look more deeply into that, but i’m not an expert with PHP to say the least).

    Best,
    Jon

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Automatization of Simply Static generation possible?’ is closed to new replies.