adjust preview server for 2.x, thanks to @yinheli via #220
Merge pull request #224 from allmobilize/codename-h

adjust preview server for 2.x, thanks to @yinheli via #220