AcroMedia / drupal-orange-project

Provides a template to create a new Drupal 8 project via Composer.
GNU General Public License v2.0
10 stars 11 forks source link

Lando option #1

Closed nilswloewen closed 6 years ago

nilswloewen commented 6 years ago

I propose adding this .lando.yml file to the repo.

name: drupal-orange-project
recipe: drupal8
config:
  webroot: web
  xdebug: true

services:
  index:
    # Use solr version 7.1
    type: solr:7.1

   # Lando will dynamically assign a port and will give you a different port each time you restart your app
    portforward: true

    # Optionally declare the name of the solr core.
    # This setting is only applicable for versions 5.5 and above
    core: orange_solr

    # Optionally use custom solr config files eg (schema.xml and solrconfig.xml)
    # This is helpful if frameworks require custom config eg Drupal.
    # This is relative to the app root (which may be different from your webroot).
    config:
      conf: web/modules/contrib/search_api_solr/solr-conf/7.x

  node:
    type: node:8.9
    run:
      - cd $LANDO_MOUNT && lando npm install gulp gulp-sass

    globals:
      gulp-cli: "latest"
proxy:
  appserver:
    - drupal-orange-project.lndo.site

  # Lets get a nice lndo url for the solr web interface
  index:
    - solr.drupal-orange-project.lndo.site:
tooling:
  node:
    service: node
  npm:
    service: node
  gulp:
    service: node

Note: The npm install --production and gulp commands need to be revised as they return this error:

Local gulp not found in /app
Try running: npm install gulp

Also lando does not support Solr 7.4 yet. I don't know if this will be an issue for anyone.

Workflow for starting new site using Lando: https://wiki.acromediainc.com/wiki/Lando

smmccabe commented 6 years ago

Adding a lando file is a good thing, PR this up broski

smmccabe commented 6 years ago

and you can link the PR and this issue once you get it created

cbildstein commented 6 years ago

2 PR merged