Repository navigation
How to install manually like a normal profile? #134
Description
Activity
The installation instruction is provided in the
README.mdfile. Basically you need to installphing, then runphing ads-installwhich will read and configure the profile based on thebuild.xmlfile.Libraries, modules and themes are there, but in separate repositories. Check the
drush/folder for Drush's.makefiles which consist dependencies which are downloaded during the build which is performed viadrush make.If you got stuck during the build, please let me know.
What if I do not want to use phing?
You can try to use:
drush makecommand followed by the.makefile, such asbuild-ads.make,build-ads-latest-min.make,build-ads-stable-min.make, etc, depending if you need minimum/full, stable or dev installation. I would recommendbuild-ads-latest-min.makeas a start. You need to use Drush 8.x.When building with
phing, it does relevant setup such as folder permissions, and customization of your build by reading thebuild.propertiesfile. Using onlydrush make, it'll download all required dependencies, however, you will have to setup db and site configuration manually.I installed phing using composer. When I try to run command "phing ads-install" in "ads-master" directory, it gives "command not recognized" error and when I use "> phing ads-install", it says access denied. I am using cmd with admin access.
When I write "> phing" in git, it says, "phing is a folder"
Why it has to be so much difficult? I was sick using composer and now there is a new thing phing. Why not please make things simpler for non-advanced users. Thank you.
You just run:
phing(see:build.xmlfile) ormake installcommand (see:Makefilefile in the folder where isbuild.xmlorMakefile, then follow any instructions. "I write '> phing' in git" doesn't make much sense,phing ads-installis the command which you run in the shell, like any other command.Another simple way is run
make installif you're on Linux/macOS which invokesphing.At that time,
phingwas the tool commonly used for build processes, some people useant(but it's more for Java apps), or Grant/Gulp, but at the same time, it would be the same thing. When ADS will be migrated to Drupal 8, then Composer would be a better tool.It's never simple because everybody can use a different operating system, different PHP, tools and their versions. And Phing should be cross-compatible, including Windows compability.
These are the commands what I am running on my local macOS:
-
Clone the repo:
git clone https://github.com/mycognitive/ads. -
After cloning enter ads directory by:
cd ads. -
I run:
phing ads-install(I'm using Phing v2.16).Which worked fine, but gives me the expected error:
ACTION REQUIRED! Please edit ads/build.properties
-
I edit
build.propertiesand removing the line containingproperties.notset=trueas per comments and double checking the build settings. -
I need to make sure my selected database exists. I create by:
mysql -u root -proot -e "CREATE DATABASE ads". To avoid "Cannot access selected database!" error. -
I run
phing ads-installcommand again.
If you've got errors which you've got (relevant lines consisting Error word). Alternatively, if Phing won't work, try
build-ads.makecommand instead.-
I've tested and possibly Drush Make won't work on PHP 7.x due to errors and bugs I believe.
I'm including suggested manual steps how to install profile:
Manual steps
- Install sources of Drupal 7.x as usual.
- Clone https://github.com/mycognitive/ads into profile directory.
- Clone https://github.com/mycognitive/ads_drush as
sites/all/drush. - You need all contrib, core, libraries and themes dependencies included in
drush/.makefiles.
However, I would advise you to use plain Drupal 8 instead and implement your requirements from scratch and not using this project, as it was developed a few years back and it seems everything a bit outdated and possible it is just not working, so it needs some significant time to invest into it. Ideally, the plan is to rewrite Ads project into Drupal 8 using Composer, but it won't happen soon.
I am using windows. I have composer and git already installed. I am also using acquia dev desktop. I will try again
I do not see "libraries", "modules" and "themes" folders. Normally, we put the folder in the "profiles" folder. This looks a bit different.