Last change
on this file since 482 was
476,
checked in by hendrikvanantwerpen, 12 years ago
|
Added database backup and automatically versioned deploy message.
|
-
Property svn:executable set to
*
|
File size:
414 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | DEPLOYURL=git@heroku.com:quod-erat.git |
---|
4 | DEPLOYDIR=quod-erat.git |
---|
5 | RELBUILDDIR=../build |
---|
6 | |
---|
7 | COMMITMSG="Deployment of revision `svnversion .` on `date`" |
---|
8 | |
---|
9 | echo "$COMMITMSG..." |
---|
10 | |
---|
11 | if [ ! -d "$DEPLOYDIR" ]; then |
---|
12 | git clone "$DEPLOYURL" "$DEPLOYDIR" |
---|
13 | fi |
---|
14 | |
---|
15 | (cd "$DEPLOYDIR" && \ |
---|
16 | git pull && \ |
---|
17 | rm -rf * && \ |
---|
18 | cp -r "$RELBUILDDIR"/* . && \ |
---|
19 | git add . && \ |
---|
20 | git commit -a -m "$COMMITMSG" && \ |
---|
21 | git push) |
---|
22 | |
---|
23 | echo "Done." |
---|
Note: See
TracBrowser
for help on using the repository browser.