update code for deploy follow https://coderwall.com/p/yz8cha