![]() As aforementioned , the Git-client shouldn’t be installed into a directory that has space into it’s path. This step is critical, the configurations that are defined in config.ini file are highly dependent from how the Git-client was installed.Rename the file to config.iniand open it in your favorite editor (I prefer Notepad++). This step of GitList’s installation process is to define two basic configuration options (path of the Git-client - git.exe - and location of the Git-repositories ).Actually composer should be installed into a folder elsewhere in the file-system (for example c:\composer) and it’s path listed into the system’s path ( right click computer icon -> properties-> advanced -> environment-variables ->path), that would make composer also available for other projects. I have taken the simplest approach to install composer (into current project’s folder ). Composer will read this file and act upon. The work is done for use (thanks to GitList’s authors), all libraries that GitList depends on are listed in the composer.json file. Let composer download all libraries (and any dependencies ).cd into “gitlist” (the newly created directory) and download composer (PHP’s package manager).Let’s clone the GitList library (it could be also downloaded directly from the website ).Open the root directory of the web-server (on my computer its on C:\wamp\The following command-prompt window is shown.The root folder of the installation-partition could be a good choice ( C:\git). ![]() One critical point is that the Git-client of your choice should not be installed in “Program Files” folder as the space in the path is not accepted by GitList’s configuration file (this is my conclusion ). Prerequisites : As aforementioned, Apache - PHP5.3 and a Git-client are the prerequisites before continuing the installation process of GitList. The focus of this article is on GitList, so let’s get started. I have over-simplified the description to keep the article into reasonable size. This composer.json file defines all project dependencies, and optionally configures composer . All a user has to do is drop a composer.json file in the project folder and run composer.phar install. ![]() Composer is a command-line utility with which you install packages, it contains a dependency solver to be able to recursively resolve inter-package dependencies, a set of down-loaders , installers and other fancy things. Programmers have also the same fears, if their projects depend on different frameworks – libraries, this is the first issue to consider before starting the building process. Package-managers are the rescue, for Linux : Yum – Apt-get. Linux users are familiar with the sentence of “ dependency hell” (libraries that depends on other libraries). Ĭomposer , the new PHP package management system that aims to solve the code sharing problem. You should already know how to work with Git, otherwise this article will make no sense to you. It makes it easy to experiment with new ideas in a project and not worry about breaking anything. Git allows you to work on your code with relax as everything you do is reversible. Gitis an open-source distributed version control tool, it was created by Linus Torvalds when he was building the Linux kernel. Don’t worry, it won’t hurt and it’s quicker than installing WordPress, Joomla or any other CMS. In this article I’ll guide you through the process of setting up your own Git repository-viewer on a Windows box that has already Appache/php up-and running (my tests where made with WAMP). These three requirements should be met before the system is ready to “repo-fly” : 1)You already have a local Apache web-server with mod_rewrite enabled (or nginx), 2) PHP5.3.3 and 3) a Git-client (no matter witch, tortoisegit, msysGit, ROR’s git-client). ![]() Pretty easy, as Gitlist is written with PHP, it can be installed on any platform. Sometimes, making your Git repositories only available in a local intranet is a requirement (otherwise you would use GitHub, right ? ). It also generates RSS feeds for each repository, allowing you to stay up-to-date with the latest changes anytime, anywhere (isolated in the region of your intranet). It allows you to browse locally installed Git repositories using your favorite browser, viewing files under different revisions, commit history, diffs. GitList is an elegant and modern web interface for interacting with multiple git repositories. How to install a Local Git Repository Viewer Using GitList and Wamp SeptemPosted by Tournas Dimitrios in PHP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |