If the prices that rise are the prices of the product that the factory makes, then, the factory's level of production will increase as well.
For example, if the price of samsung phones rise, then, samsung factories will make more phones because it will sell more, at higher prices, and thus, earn more money.