File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
- ruby '2.5.3 '
2
+ ruby '2.5.7 '
3
3
gem 'sinatra'
4
4
gem 'sinatra-contrib'
5
5
gem 'sinatra-jsonp'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # deploy the ruby backend to zeit
3
+ # deploy to gcloud
4
4
#
5
5
6
- set -o errexit
7
- set -o pipefail
8
- set -o nounset
6
+ cat app.yaml \
7
+ | jq --sort-keys " .env_variables.LASTMOD|= \" $( date -u +%Y-%m-%dT%H:%M:%SZ ) \" |.env_variables.COMMIT|= \" $( git rev-parse --short HEAD ) \" " \
8
+ | ex -sc ' wq!app.yaml ' /dev/stdin
9
9
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
10
+ gcloud app deploy \
11
+ --project regexplanet-ruby
12
+
13
+ cat app.yaml \
14
+ | jq ' del(.env_variables.LASTMOD)|del(.env_variables.COMMIT)' \
15
+ | ex -sc ' wq!app.yaml' /dev/stdin
You can’t perform that action at this time.
0 commit comments