Skip to content

Instantly share code, notes, and snippets.

@philoSurfer
Created March 19, 2020 20:09
Show Gist options
  • Save philoSurfer/aa954928db01d3104da72dc56509ab65 to your computer and use it in GitHub Desktop.
Save philoSurfer/aa954928db01d3104da72dc56509ab65 to your computer and use it in GitHub Desktop.
Lando smasher for MacOS
#!/bin/sh
# file: landoSmash.sh
echo "LANDO SMASH!!!";
# change to your project folder
cd ~/clones/presence;
# exports db if it is bootstrappable (word?)
echo "Exporting dB...\n";
lando db-export;
killall Docker;
# nuke all lando settings and images
rm -Rf ~/.lando;
# do composer stuff
rm -Rf vendor/ node_modules/ web/themes/custom/limber/node_modules web/core/ web/modules/contrib/;
composer install;
lando start;
say "all done.";
echo "ALL DONE =)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment