The embodiment of the invention discloses an application deployment method and a related device, and at least relates to private cloud, public cloud, hybrid cloud, artificial intelligence service andthe like in the cloud technology. Since a connection entry corresponding to a target application is recorded in a configuration template of the target application, when the target application needs tobe deployed in any target environment, the connection information type of the connection service middleware when the target application is operated can be identified based on the connection entry, according to the method, the connection information corresponding to the connection information type in the target environment is automatically acquired, and the configuration file of the target application deployed in the target environment is generated in combination with the configuration template, so that the target application is deployed in the target environment by utilizing the generated configuration file, automatic deployment of the target application in the target environment is realized, the problems of connection information conflict, inconformity with connection information provided by an actual application deployment environment and the like caused by configuring a configuration file required for deploying the application in a manual static configuration mode are avoided, andthe application deployment efficiency is improved.