add production config to gitignore, add nl2br function to fix message format