Skip to content

Commit c9a442b

Browse files
Add deploy script
1 parent 35f4586 commit c9a442b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"scripts": {
66
"start": "node server.js",
7-
"test": "mocha test/unit"
7+
"test": "mocha test/unit",
8+
"deploy": "./scripts/deploy.sh"
89
},
910
"dependencies": {
1011
"express": "3.4.5",

scripts/deploy.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -o errexit # Exit on error
4+
5+
git checkout heroku
6+
git rebase master
7+
git push --force heroku heroku:master
8+
git push --force origin heroku
9+
git checkout master

0 commit comments

Comments
 (0)