dbdropper Posted July 7, 2023 Share Posted July 7, 2023 (edited) Hi everyone I come from the e-commerce background of running an Opencart monolith on a given server that you manually configured years ago and it runs to this day. The oldschool approach. I want to kill two birds with one stone: a. start the move to Prestashop and b. work on a reasonable one-click-CI-CD automation right away. My intention is to have PHP environment (say, Heroku – but not necessarily) into which I to deploy my Prestashop code from a repository. It loads whatever dependencies I have in my composer.json, then picks up all the necessary configuration from environment variables and/or an .env file, and is finally ready to run the app. Pretty much what GatsbyJS does on Gatsby Cloud – I run my blog there, and it's very convenient. The tricky part, it seems, is to have a combination of upstream Prestashop code which I'm not interfering with and my own modules/extensions/theme that I need for my store. How would you implement it properly? And on what platform? My ideas: have my own repository with custom stuff in a branch called custom; once in a while switch to master, sync the master with upstream (latest Prestashop code), merge master into custom, resolve conflicts if any; deploy from the custom branch, not master have my own repository with custom stuff only, and actual Prestashop listed as composer.json dependency; somehow instruct composer to install/move everything into right folders anything else? Thank you! Edited July 7, 2023 by dbdropper (see edit history) Link to comment Share on other sites More sharing options...
dbdropper Posted July 17, 2023 Author Share Posted July 17, 2023 Found two dead topics, going all the way back to 2012. Not really helpful, sadly. Found also a guide that seems relevant: Part 1: Get Ready - for the general idea Part 4: External FS - on using s3fs for media storage Part 6: Git Power - shows which Prestashop folders should be committed to Git Link to comment Share on other sites More sharing options...
AddWeb Solution Posted July 18, 2023 Share Posted July 18, 2023 On 7/7/2023 at 11:48 PM, dbdropper said: Hi everyone I come from the e-commerce background of running an Opencart monolith on a given server that you manually configured years ago and it runs to this day. The oldschool approach. I want to kill two birds with one stone: a. start the move to Prestashop and b. work on a reasonable one-click-CI-CD automation right away. My intention is to have PHP environment (say, Heroku – but not necessarily) into which I to deploy my Prestashop code from a repository. It loads whatever dependencies I have in my composer.json, then picks up all the necessary configuration from environment variables and/or an .env file, and is finally ready to run the app. Pretty much what GatsbyJS does on Gatsby Cloud – I run my blog there, and it's very convenient. The tricky part, it seems, is to have a combination of upstream Prestashop code which I'm not interfering with and my own modules/extensions/theme that I need for my store. How would you implement it properly? And on what platform? My ideas: have my own repository with custom stuff in a branch called custom; once in a while switch to master, sync the master with upstream (latest Prestashop code), merge master into custom, resolve conflicts if any; deploy from the custom branch, not master have my own repository with custom stuff only, and actual Prestashop listed as composer.json dependency; somehow instruct composer to install/move everything into right folders anything else? Thank you! Hi, - Choose a CI/CD platform like Jenkins, GitLab CI/CD, or GitHub Actions. - Set up your CI/CD pipeline to automatically deploy from the "custom" branch whenever there are updates. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now