I made a one-off CMS for a client of mine a while ago, however it was powerful enough that I used it again on a number other projects. Now that I need to manage it, I want to be able to update all of the deployments via a single update.
I'm wondering if I might be able to have the CMS simply include files from a GitHub repository. Is there a way to do this? Something like:
<?php
require('URL TO MEDIA UPLOAD MODULE AT GITHUB');
require('URL TO PAGE MANAGEMENT MODULE AT GITHUB');
//etc...
?>
Eventually the CMS will have a number of different modules for a number of different business types (real estate, retail products & services, etc) that will be included based on the modules listed for the specific deployments needs.
I just want to store everything in one place and have each deployment updated when I commit a change to the repo.
Is this possible? If not, any suggestions?
I have no idea about storing files on Github.
However, I do have another suggestion to get to your goal:
If your projects reside on the same server and you have root access to the server, you could have the core files in 1 location. With symlinks you can have the projects make use of that same directory. You will never have to deploy again since you only have to update 1 set of files.
Just make sure that theres a way to store/load the templates and individual user settings apart from the core files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.