Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install manually like a normal profile? #134

Open
ugintl opened this issue Jan 8, 2018 · 10 comments
Open

How to install manually like a normal profile? #134

ugintl opened this issue Jan 8, 2018 · 10 comments

Comments

@ugintl
Copy link

ugintl commented Jan 8, 2018

I do not see "libraries", "modules" and "themes" folders. Normally, we put the folder in the "profiles" folder. This looks a bit different.

@kenorb
Copy link
Member

kenorb commented Jan 8, 2018

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.

@ugintl
Copy link
Author

ugintl commented Jan 10, 2018

What if I do not want to use phing?

@kenorb
Copy link
Member

kenorb commented Jan 10, 2018

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.

@ugintl
Copy link
Author

ugintl commented Jan 14, 2018

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.

@ugintl
Copy link
Author

ugintl commented Jan 14, 2018

When I write "> phing" in git, it says, "phing is a folder"

@ugintl
Copy link
Author

ugintl commented Jan 14, 2018

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.

@kenorb
Copy link
Member

kenorb commented Jan 14, 2018

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:

  1. Clone the repo: git clone https://github.com/mycognitive/ads.

  2. After cloning enter ads directory by: cd ads.

  3. 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

  4. I edit build.properties and removing the line containing properties.notset=true as per comments and double checking the build settings.

  5. 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.

  6. 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.

@kenorb
Copy link
Member

kenorb commented Jan 14, 2018

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

  1. Install sources of Drupal 7.x as usual.
  2. Clone https://github.com/mycognitive/ads into profile directory.
  3. Clone https://github.com/mycognitive/ads_drush as sites/all/drush.
  4. You need all contrib, core, libraries and themes dependencies included in drush/ .make files.

@kenorb
Copy link
Member

kenorb commented Jan 14, 2018

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.

@ugintl
Copy link
Author

ugintl commented Jan 21, 2018

I am using windows. I have composer and git already installed. I am also using acquia dev desktop. I will try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants