Skip to content

Commit c2d1ee7

Browse files
committed
updated status.json, added favicon.svg
1 parent ab6af00 commit c2d1ee7

File tree

4 files changed

+287
-20
lines changed

4 files changed

+287
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ See [Ruby online regex test page](http://www.regexplanet.com/advanced/ruby/index
1414

1515
* Ruby
1616
* Docker
17-
* Heroku
17+
* Zeit
1818
* Sinatra

deploy.sh

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,12 @@
33
# deploy the ruby backend to zeit
44
#
55

6-
#set -o errexit
6+
set -o errexit
77
set -o pipefail
88
set -o nounset
99

10-
LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ)
11-
grep -q "^LASTMOD=" .env
12-
if [ $? -ne 0 ]; then
13-
echo "LASTMOD=$LASTMOD" >> .env
14-
else
15-
sed -i -e "s/^LASTMOD=.*$/LASTMOD=$LASTMOD/g" .env
16-
fi
17-
18-
COMMIT=$(git rev-parse --short HEAD)
19-
grep -q "^COMMIT=" .env
20-
if [ $? -ne 0 ]; then
21-
echo "COMMIT=$COMMIT" >> .env
22-
else
23-
sed -i -e "s/^COMMIT=.*$/COMMIT=$COMMIT/g" .env
24-
fi
25-
26-
27-
now --public --dotenv && now alias && now rm $(cat ./now.json | jq '.name' --raw-output) --safe --yes
10+
now \
11+
--env COMMIT=$(git rev-parse --short HEAD) \
12+
--env LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
13+
&& now alias \
14+
&& now rm $(cat ./now.json | jq '.name' --raw-output) --safe --yes

0 commit comments

Comments
 (0)