Open ugintl opened 6 years ago
The installation instruction is provided in the README.md
file. Basically you need to install phing
, then run phing ads-install
which will read and configure the profile based on the build.xml
file.
Libraries, modules and themes are there, but in separate repositories. Check the drush/
folder for Drush's .make
files which consist dependencies which are downloaded during the build which is performed via drush 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 make
command followed by the .make
file, such as build-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 recommend build-ads-latest-min.make
as 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 the build.properties
file. Using only drush 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.xml
file) or make install
command (see: Makefile
file in the folder where is build.xml
or Makefile
, then follow any instructions. "I write '> phing' in git" doesn't make much sense, phing ads-install
is the command which you run in the shell, like any other command.
Another simple way is run make install
if you're on Linux/macOS which invokes phing
.
At that time, phing
was the tool commonly used for build processes, some people use ant
(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.properties
and removing the line containing properties.notset=true
as 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-install
command again.
If you've got errors which you've got (relevant lines consisting Error word). Alternatively, if Phing won't work, try build-ads.make
command 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:
sites/all/drush
.drush/
.make
files.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.