Varbase Sub Profile Generator

We do have a generator for new Varbase sub profiles, which could help you in a quick way.

Step #1

Download the Varbase Sub profile generator from 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/products
cd /var/www/html/products
git clone
cd /var/www/html/products/varbase-subprofile-generator

Step #2

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-generator
git checkout 8.4.08

Step #3

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-generator
bash "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-generator

Step #4

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/cv
mv /var/www/html/products/varbase-subprofile-generator/cv-project /var/www/html/products/cv-project

Step #5

You will need to create 2 new PRIVATE repositories for your sub profile

For Example:

Then we could add the remote repositories

cd /var/www/html/products/cv
git init
git remote add origin
git 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-project
git init
git remote add origin
git add .
git commit -m "Initial commit" .
git push origin master

Step #6

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 or clone it.

 mkdir /var/www/html/dev
 cd /var/www/html/dev
 git clone
 cd /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-project
composer install -vvv

Now you could head to http://localhost/dev/cv-project/docroot and install your sub profile for development.

Generator Settings

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"
  subprofile_name: "varbase_subprofile_basic"
  private_bitbucket: true
  public_bitbucket: false
  private_github: false
  public_github: false
  public_drupal: false

For Development you may need to change the dev_version to and set it to dev-master.

results matching ""

    No results matching ""