Generate config file by dev/product env.