We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826b2ff commit 986cd39Copy full SHA for 986cd39
deploy.sh
@@ -1,17 +1,14 @@
1
#!/bin/bash
2
#
3
-# deploy the xregexp backend to zeit
+# deploy the js backend to Zeit
4
5
6
+set -o errexit
7
+set -o pipefail
8
+set -o nounset
9
-echo "INFO: listing existing versions"
-now ls regexplanet-xregexp
-
10
-echo "INFO: deploying"
11
-now && now alias
12
13
-#
14
-# need to kill the old version!
15
16
-echo "INFO: removing the old version "
17
-echo "WARNING: must be done manually with 'now rm'"
+now \
+ --env COMMIT=$(git rev-parse --short HEAD) \
+ --env LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
+ && now alias \
+ && now rm $(cat ./now.json | jq '.name' --raw-output) --safe --yes
0 commit comments