Modify settings to access public directory when prodction.