fix #12 set local server and port as base_url in serve mode