Gizra / generator-hedley

Scaffold a headless Drupal backend, Angular app client, and Behat tests
http://www.gizra.com/content/yo-hedley
98 stars 20 forks source link

Using existing site name generates same drush alias thus ruin that doc root #100

Open clemens-tolboom opened 8 years ago

clemens-tolboom commented 8 years ago

Not sure what I was doing (doh) I used my scratch drupal.d8 site which is completely replaced by a D7.41 site.

My guess this is due to drush make using my own drush alias which contains the doc root path too.

As I learned about this generator today I will retry using the defaults :p

clemens-tolboom commented 8 years ago

Ok the warning is printed somewhere after

Drupal install
install: line 15: cd: install: Not a directory

  Install Xss                                                    

  > This will delete the database, contrib code and files.       
  > This will recreate the environment                           
    (download Drupal + contrib modules & themes).                
  > This will install the xss profile.                           

  • Demo content will be loaded into the platform.               
  • A browser tab will open and log you in as Administrator.     

but that is not escapable.

amitaibu commented 8 years ago

If you want to skip the install all together you can yo hedley --skip-install - is that what you are looking for?

clemens-tolboom commented 8 years ago

I was just testing and willing to offer my drupal.d8 database but giving the url drupal.d8 the generator picked up that drupal.d8 docroot while it also generates it's own www/

So I guess a bug but have to experiment more.

One question regarding the URL setting ... I somehow guess some vhost settings should be done beforehand or default behavior is expected?!?

amitaibu commented 8 years ago

One question regarding the URL setting ... I somehow guess some vhost settings should be done beforehand or default behavior is expected?!?

I personally work on my local without vhost per site, so all my sites end up in http://localhost/site1/www, http://localhost/site2/www etc'