Skip to content

Instantly share code, notes, and snippets.

@neninja
Last active June 4, 2018 05:27
Show Gist options
  • Save neninja/c2aca3b1a9eab25b2a5accc2fbbe087c to your computer and use it in GitHub Desktop.
Save neninja/c2aca3b1a9eab25b2a5accc2fbbe087c to your computer and use it in GitHub Desktop.
# deploy
# script npm = "deploy": "sudo chmod +x deploy.sh && ./deploy.sh"
cp index.html dist/index.html
mkdir -p dist/src
cp -Rap src/assets dist/src
sed -i '/dist\// s//src\/assets\/js\//g' dist/index.html
cp dist/build.js dist/src/assets/js
cp dist/build.js.map dist/src/assets/js
# git deve estar configurado já
# https://gist.github.com/cobyism/4730490
git add dist && git commit -m "deploy :rocket:"
git subtree push --prefix dist origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment