Skip to content

Develop your own components in a different repository

alangrafu edited this page Mar 27, 2013 · 6 revisions

A common use of LODSPeaKr is to build an application that is in its own revision control system, such as GIT, Subversion or others. In order to avoid forking a version of LODSPeaKr you can do the following:

  • Install LODSPeaKr as usual, using bash < <(curl -sL http://lodspeakr.org/install) (see more in Installation)
  • Create your components as usual, using utils/lodspk.sh (see more at Using lodspk.sh)
  • Create a new repository (using git, mercurial, etc) and move the directory components and static there and add them to the repository
    • Be aware that static directory will soon be included inside components
    • UPDATE: Since version 20120910 static is included inside components. Learn more about Lodspeakr using the new location of static folder
    • Eventually you may want to add settings.inc.php as well
  • Create softlinks (using ln -s) in the original directory of components, static and settings.inc.php pointing to the new location.

That's it. you now have a repository with only the components you have created that is separated from LODSPeaKr's git repository. You can push, pull and commit changes of your components and that will be independent of the updates pulled into LODSPeaKr.

Example

You can take a look at the WWW2012 mobile webapp repository which does exactly that.

  • cd /var/www/myapp
  • Install LODSPeaKr (See Installation)
  • cd $HOME
  • git clone git://github.com/alangrafu/WWW2012-mobile-webapp.git
  • cd /var/www/myapp/lodspeakr
  • rm -rf components
  • ln -s $HOME/WWW2012-mobile-webapp/components

What's next

Clone this wiki locally