We do have a generator for new Varbase sub profiles, which could help you in a quick way.
Download the Varbase Sub profile generator from https://bitbucket.org/Vardot/varbase-subprofile-generator and get ready to generate profiles.
For Example: if /var/www/html/products is your products working directory you could do the following
mkdir /var/www/html/productscd /var/www/html/productsgit clone git@bitbucket.org:Vardot/varbase-subprofile-generator.gitcd /var/www/html/products/varbase-subprofile-generator
Set the version of the generator
For Example: if you want to generate a sub profile to use Varbase 8.4.08 you could do the following:
cd /var/www/html/products/varbase-subprofile-generatorgit checkout 8.4.10
Run the generate command:
For Example: If we want to create a new Varbase sub profile named cv , we could run the following commands in your local terminal:
cd /var/www/html/products/varbase-subprofile-generatorbash create-new-varbase-subprofile.sh "cv" -vvv
After that you will have a new cv sub profile cv-project as you can see in the following:
cd /var/www/html/products/varbase-subprofile-generatorllcreate-new-varbase-subprofile.shcv/cv-project/.git/README.mdsettings.ymlvarbase_subprofile_basic/varbase-subprofile-basic-project/
Copy your Varbase sub profile to your working directory.
For Example: You could copy cv and cv-project to your local products development working directory:
mv /var/www/html/products/varbase-subprofile-generator/cv /var/www/html/products/cvmv /var/www/html/products/varbase-subprofile-generator/cv-project /var/www/html/products/cv-project
You will need to create 2 new PRIVATE repositories for your sub profile
For Example:
​https://bitbucket.org/Vardot/cv https://bitbucket.org/Vardot/cv-project​
Then we could add the remote repositories
cd /var/www/html/products/cvgit initgit remote add origin git@bitbucket.org:Vardot/cv.gitgit add .git commit -m "Initial commit" .git push origin master
Now we do have our cv sub profile as drupal-profile
And for the cv-project templates
cd /var/www/html/products/cv-projectgit initgit remote add origin git@bitbucket.org:Vardot/cv-project.gitgit add .git commit -m "Initial commit" .git push origin master
You will need to have a development working directory to work on changing on your sub profile
For Example: If we want to add new features, modules, default content, demo content, and custom theme to our cv sub profile we could download the cv-project from https://bitbucket.org/Vardot/cv-project/downloads/ or clone it.
mkdir /var/www/html/devcd /var/www/html/devgit clone git@bitbucket.org:Vardot/cv-project.gitcd /var/www/html/dev/cv-project
You will need set your needed branches, for example 8.x-1.x, or 8.x-4.x for your cv and cv-project to call then needed branch for development.
After that you could run the composer install command
cd /var/www/html/dev/cv-projectcomposer install -vvv
Now you could head to http://localhost/dev/cv-project/docroot and install your sub profile for development.
You will notice a settings.yml file which will set the default settings for Varbase Sub Profile Generator.
version: "8.4.08"dev_version: "dev-master"default:subprofile_name: "varbase_subprofile_basic"processor:private_bitbucket: truepublic_bitbucket: falseprivate_github: falsepublic_github: falsepublic_drupal: false
For Development you may need to change the dev_version to and set it to dev-master.