Skip to content

Instantly share code, notes, and snippets.

@wesruv wesruv/.lando.yml
Last active Jun 14, 2019

Embed
What would you like to do?
Lando config for a Drupal 7 site with Compass Sass
name: mydrupalprojectwithcompass
recipe: drupal7
config:
webroot: docroot
php: '5.6'
database: mysql:5.7
xdebug: true
events:
post-db-import:
- appserver: cd $LANDO_WEBROOT/sites/default && drush rr
services:
appserver:
build:
- "drush @none dl registry_rebuild-7.x -y"
ruby:
type: ruby:2.4
install_dependencies_as_me:
- gem install compass
tooling:
gem:
service: ruby
ruby:
service: ruby
compass:
service: ruby
@wesruv

This comment has been minimized.

Copy link
Owner Author

wesruv commented Dec 24, 2018

It also has drush rr installed and automatically runs it after db-import.

To use compass with this you'd navigate to the folder that needs compass support and run lando compass compile or lando compass watch, or whatever commands/flags you need from compass.

@adamtyoung

This comment has been minimized.

Copy link

adamtyoung commented Feb 15, 2019

wow, this is great! not working for me though: I am getting this error when navigating to my theme folder and running lando compass watch: "OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: "compass": executable file not found in $PATH": unknown"

@jimafisk

This comment has been minimized.

Copy link

jimafisk commented Mar 21, 2019

This worked for me, thanks @wesruv!

@adamtyoung sounds like compass didn't install correctly in your container. If you attach to the container with lando ssh -s ruby then try to run compass does it say command bash: compass: command not found?

You could lando destory (make sure you have any backups you need) and lando start again, then check the build for errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.