Skip to content

Commit a8aff6d

Browse files
committed
favicon and status vars
1 parent f430844 commit a8aff6d

File tree

5 files changed

+308
-15
lines changed

5 files changed

+308
-15
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ RUN \
1717
# psql --echo-queries --dbname=rxp_db --file=/app/dbinit.sql
1818

1919
ENV DATABASE_URL=postgresql://rxp_user:secret@localhost:5432/rxp_db
20-
20+
ENV COMMIT=$COMMIT
21+
ENV LASTMOD=$LASTMOD
22+
2123
WORKDIR /app
2224
CMD ./server.sh

deploy.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
#!/bin/bash
22
#
3-
# deploy the xregexp backend to zeit
3+
# deploy the postgresql backend to heroku
44
#
55

6-
heroku container:push --app regexplanet-postgresql web
7-
6+
set -o errexit
7+
set -o pipefail
8+
set -o nounset
89

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)
1111

12-
#echo "INFO: deploying"
13-
#now && now alias
12+
heroku container:push --app regexplanet-postgresql web
13+
heroku container:release --app regexplanet-postgresql web
1414

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'"

favicon.ico

78.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)