Hot answers tagged

8

There are two concepts we're dealing with, the first being a code repository. Although there are different types of repository technologies, GIT is the defacto standard currently. Websites such as Github and Bitbucket are popular web services offering free GIT hosting solutions. The key point here being GIT is the actual underlying technology, and will ...


6

Regarding how Joomla loads configuration.php in index.php, at line 29 if (file_exists(__DIR__ . '/defines.php')) { include_once __DIR__ . '/defines.php'; } if (!defined('_JDEFINES')) { define('JPATH_BASE', __DIR__); require_once JPATH_BASE . '/includes/defines.php'; } You can put a custom defines.php in the Joomla root directory, then ...


4

I don't understand why you set up the bare / public structure; I only use the public_html as the root of the repo, with a very complete .gitignore (which needs to be updated after each new Joomla! update, with git status you find the new files and add them so they don't get versioned). Developers push to development branches; in the end when a release is ...


3

One approach I read about to making your component a proper format for versioning and zipping is this: Take a copy of your component and install it; Remove the installed component folders within your Joomla installation (administrator/components/com_component, components/com_component, media/com_component); Then create symbolic links from those folders to ...


3

You did not mention which editor you are using. However most editors such as Eclipse supports ANT build files and can automatically build whenever any change done to the source code. So here is how I do my development. I use separate workspace for all my projects I structure my component like what you mentioned in your last code block i.e. only the ...


3

symlink command for Bootstrap assets is failing. Symlinking is known not to work on some Windows versions. Note: Windows users should note that this function will only work if the system you run PHP from is Windows Vista/Windows Server 2008 or newer. Windows versions prior to that do not support symbolic links. Don't know which OS you have, but if it's ...


2

I believe you are applying the patch incorrectly. To properly install git patches, you will need to perform a few command line functions which are explain in the following tutorial: https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ Personally I think you could simply perform the change manually as there are only minor tweaks ...


2

I would suggest you do actually work locally when doing your development. You can then push your changes to Bitbucket using Git and then use a Hook to automatically update the repository on the development server for your clients to view. There are some good answers here which will help you: https://stackoverflow.com/questions/3728054/git-push-to-live-...


2

I would like to answer my own question. bcoz it may help others. Laravel implemented it with the help of Envoy, The requirement can be fixed in few ways. Write a bash script for doing deployment. Use the Git hooks options. Use Bit Bucket Hooks options. Here I will explain bash script that is what I preferred. #!/bin/bash ## Project Deployment Script ## ...


2

In Joomla, there is no similar own tool for defining common tasks to be run on your remote servers. As usual, you can integrate Jenkins, Docker, Gulp, Bower or other tools to automate tasks. Related with the question, I have found these JAB sessions are interesting: Setting up Jenkins with Docker to Test your Joomla! Extension Gulp


2

To set files and directories to chmod 777 or even chmod 770 is not a good idea on a production system. Every webserver system like apache2, nginx can be configured to work with a special user and group - that's important not to get any user rights on the system. On most Debian like systems, the user is set to www-data with group www-data, standard is the ...


1

You will need to download and install Composer first. Once done, open your terminal, navigate to the root of your Joomla installtion, and type in the following command: composer install You'll then need to install NodeJS. Be sure to get the long term release 10.x. Once installed, in the same terminal, run the following command: npm i These commands ...


1

My question was answered in the comments section by user TryHarder. I'll formulate it as follows: The approach I'm using is this: Take a copy of your component and install it; Remove the installed component folders within your Joomla installation (administrator/components/com_component, components/com_component, media/com_component); Then create symbolic ...


1

Once a user recomend to me build a development environment using Ant How to version a Joomla component Also, you can build a structure usint git submodules. Where the project will be split in the joomla folders, and somewhere you'll keep a master git project for each components with all the submodules togheter. This will become the zip file


1

Why do you use FTP? It's very insecure, it's better if you could access the server remotely, through an SSH or like wise and from there do a git pull whenever you did changes in your local environment. I also recommend that you use the .gitignore-file to ignore all files in your repository, except the altered changes your developers make, this to avoid that ...


1

You can use a tool mostly designed for testing purposes under Joomla: com_patchtester You can directly search after the Pull Request id: 6180.


Only top voted, non community-wiki answers of a minimum length are eligible