Skip to content

Instantly share code, notes, and snippets.

@wesruv wesruv/.lando.yml
Last active Dec 12, 2019

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

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.


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"


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.