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:
- Make changes to custom component and test in empty Joomla install
- Commit changes.
- Pull in changes from my custom component repo to my local site (mirror of the live site through GIT).
- Make sure everything is working.
- Commit and push changes to the sites GIT repo.
- Pull in changes from the sites repo to the live server.
Database updates has to be handled manually I guess.
- Is this a good way of working?
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