Last active
June 4, 2018 05:27
-
-
Save neninja/c2aca3b1a9eab25b2a5accc2fbbe087c to your computer and use it in GitHub Desktop.
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
# 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