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 11source "https://rubygems.org"
2- ruby '2.5.3 '
2+ ruby '2.5.7 '
33gem 'sinatra'
44gem 'sinatra-contrib'
55gem 'sinatra-jsonp'
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # deploy the ruby backend to zeit
3+ # deploy to gcloud
44#
55
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
99
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