How to automate local server tasks?