hiddentao / ansijet

Ansible playbook automation server

Home Page:http://hiddentao.github.io/ansijet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to automatically refresh the log page?

AjeetK opened this issue · comments

I had setup ansijet and using a button to trigger a playbook after modifying the source code. After clicking on the button the trigger gets invoked and the user gets redirected to logs index page. Now I want to refresh the logs page after a fixed interval of time. How to do that?

commented

I'm not sure what you're asking for. Are you asking if there's a way to make the logs page auto-refresh itself? (at the moment there isn't).

@hiddentao Yes am asking for the logs page to auto-refresh itself.

commented

Sorry, no support for that at the moment.

I tried doing it with javascript but you have used KOA framework of nodejs and I even looked at the documentation of KOA but didn't found any solution for it.

commented

Easiest way would be to add some Javascript (or even a refresh meta head tag) into the Jade template for that page -> https://github.com/hiddentao/ansijet/blob/master/src/views/logs/index.jade

Ok, thakyou. Will try it out.