Skip to content

Commit 849d6c2

Browse files
committed
Deploy script
1 parent 86f44f2 commit 849d6c2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

deploy.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set -e
2+
3+
# build /dist
4+
cd app/
5+
npm run build
6+
7+
# temporarily add dist/ to version control
8+
git add -f build/
9+
10+
# push to heroku then remove commit
11+
git commit -m "Temp Heroku deploy commit" -n
12+
git push heroku master --force
13+
git reset --soft HEAD~1
14+
15+
# unstage generated files
16+
git reset HEAD build/

0 commit comments

Comments
 (0)