Automatic deployment of a PrestaShop web shop
Berg, Mattias (2024)
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe202402238592
https://urn.fi/URN:NBN:fi-fe202402238592
Tiivistelmä
The objective of this thesis is to create a solution for automatic deployment of a PrestaShop web shop to allow for a faster, more streamlined, and less error-prone way of working. Based on the wishes of the stakeholders, the solution should introduce as few new tools as possible. After some investigation of what tools are already installed when developing PrestaShop-based web shops, a solution based on the Python programming language was chosen as it was able to integrate smoothly with most frameworks for automatic deployment. The solution consists of three features, of which the first and main feature is to create a new web shop. This is the most programmatically complex feature and with the modular approach in the design of the solution it will allow for a high level of code reuse. The other two features are to delete a web shop and modify a web shop. Modifying a web shop was initially scoped to be able to change multiple parts of the web shop but was eventually reduced to only the adding of new PrestaShop modules. The solution is successfully able to automatically create and deploy a new web shop to a server, delete it, and modify it in limited ways. It unfortunately falls short when it comes to the continued way of working after a deployment, as it is not able to keep changes made through the web browser synchronized with what it is trying to deploy from. A key lesson learned is that DevOps practices will need to take the full lifecycle into account or risk falling short and creating new problems where there previously were none.