You may find your need to use different build commands for different environments, in this case, you can usually use something similar to the following:
gulp build --%serverenv%
Which would result in
gulp build --production or
gulp build --staging etc. as necessary. You can set your environment on a server while adding/updating it.