File tree Expand file tree Collapse file tree 5 files changed +308
-15
lines changed Expand file tree Collapse file tree 5 files changed +308
-15
lines changed Original file line number Diff line number Diff line change 17
17
# psql --echo-queries --dbname=rxp_db --file=/app/dbinit.sql
18
18
19
19
ENV DATABASE_URL=postgresql://rxp_user:secret@localhost:5432/rxp_db
20
-
20
+ ENV COMMIT=$COMMIT
21
+ ENV LASTMOD=$LASTMOD
22
+
21
23
WORKDIR /app
22
24
CMD ./server.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # deploy the xregexp backend to zeit
3
+ # deploy the postgresql backend to heroku
4
4
#
5
5
6
- heroku container:push --app regexplanet-postgresql web
7
-
6
+ set -o errexit
7
+ set -o pipefail
8
+ set -o nounset
8
9
9
- # echo "INFO: listing existing versions"
10
- # now ls regexplanet-postgresql
10
+ heroku config:set --app regexplanet-postgresql COMMIT=$( git rev-parse --short HEAD) LASTMOD=$( date -u +%Y-%m-%dT%H:%M:%SZ)
11
11
12
- # echo "INFO: deploying"
13
- # now && now alias
12
+ heroku container:push --app regexplanet-postgresql web
13
+ heroku container:release --app regexplanet-postgresql web
14
14
15
- #
16
- # need to kill the old version!
17
- #
18
- # echo "INFO: removing the old version "
19
- # echo "WARNING: must be done manually with 'now rm'"
You can’t perform that action at this time.
0 commit comments