Last active
May 31, 2020 16:03
-
-
Save sagalbot/d025f283288ad2176914c596dddaa9b5 to your computer and use it in GitHub Desktop.
Quick Yarn Installs on Laravel Envoyer, share `node_modules` between deployments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd {{ release }} | |
# link node_modules from last deployment | |
ln -s {{ project }}/node_modules | |
# update linked folder with latest deps | |
yarn install | |
# remove the symlink | |
rm node_modules | |
# copy the updated node_modules | |
cp -a {{ project }}/node_modules {{ release }}/node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## BE SURE TO UPDATE THEME_NAME | |
cd {{ release }}/wp-content/themes/THEME_NAME | |
# link node_modules from last deployment | |
ln -s {{ project }}/node_modules | |
# update linked folder with latest deps | |
yarn install | |
# remove the symlink | |
rm node_modules | |
# copy the updated node_modules | |
cp -a {{ project }}/node_modules {{ release }}/wp-content/themes/THEME_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment