I have some questions about how you set up your development environment.
I'm running a website that's currently using SOBI2. SOBI2 is going to be replaced by a custom component I'm creating using Nooku Framework.
What I have so far is a Joomla install on my localhost. Nooku Framework and my custom component is in their own directories on my computer and then symlinked to the Joomla installation. I do this because it's nice to have them separated when developing. My custom component is then tracked using GIT and Nooku is tracked in their public SVN repo. I guess this is a pretty standard setup.
So, now I want to clone my LIVE Joomla installation to my localhost and track it using GIT to be able to push changes easily to my live server. Right now the live site is not version controlled at all.
So, how do I do this easily?
I guess it's best to use two GIT repos, one containing only my custom component and one for the entire site. The workflow would then be something like this when developing my custom component and site:
Database updates has to be handled manually I guess.
How do I track the custom component inside my local site? I've heard about GIT Submodules, is this what it's used for?
Any good guides out there for this kind of stuff?
Best Regards Linus
We do it in the following way, but using the Mercurial source code management tool:
So basically we have Joomla inside our repository folder, but all its files are ignored, and do not get committed — except for the files of our own components.
Then we check out the repository to the production server, and then install Joomla! there. (First checkout, and then only install Joomla). When we check out the repo to production or any other place, only our files are checked out.
For database changes usually we have a db
folder (or whatever the name is), and we just add the SQL files with the scripts that make changes to the database. You can easily call them with a command like mysql -uUser -pPass dbname < 12.table_name.change_name.sql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With