Skip to content

Instantly share code, notes, and snippets.

@oskosk
Created August 2, 2018 16:34
Show Gist options
  • Save oskosk/4783e7dc20b9619aa23d59023aa37508 to your computer and use it in GitHub Desktop.
Save oskosk/4783e7dc20b9619aa23d59023aa37508 to your computer and use it in GitHub Desktop.
jetpack deployer v1
#!/bin/bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install lts/carbon
TEMPO=`mktemp -d`
cd $TEMPO &&
git clone https://github.com/Automattic/jetpack --depth=1 && \
cd jetpack &&
npm install -g yarn &&
yarn build-production &&\
yarn distclean &&\
cp -a $TEMPO/jetpack ~/apps/$USER/public/wp-content/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment