Viewing 5 replies - 1 through 5 (of 5 total)
  • That’s a great idea. Though, to be honest, it’s probably not something that we’ll include in the near future.

    One idea though, if you did want to upload automatically to github pages… You could set Simply Static to export to a directory and setup that directory as a git repository for github pages (you’re probably already doing this). Then, create a cron job that checks the directory every X minutes, checks for changes via git, and if it detects something new/modified then automatically add those to the git repo, commit with some auto-generated message, and push.

    Not the most glamorous solution, but it might be worth a try. Just a thought.

    Thread Starter thangngoc89

    (@thangngoc89)

    Thanks for your solution.

    I poking around your code to make a push to github pages option. It works for now but everything is hardcoded. And there aren’t a good git wrapper for PHP.

    I’ll try your solution then.

    Does the plugin have any WP hooks that could be used to fire other code? We are fine with writing additional code that gets fired when the static process is completed (or fails).

    Hi mettro,

    No, there are no hooks presently, but we are planning on adding some eventually.

    Having WP hooks available would be extremely valuable. It would allow me (and other devs) to add custom functionality when the process completes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature request: execute extra commands after generate’ is closed to new replies.