Configuring applications for publishing