-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSakefile.ts
43 lines (33 loc) · 1.29 KB
/
Sakefile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use('sake-bundle')
use('sake-outdated')
use('sake-version')
task('build', (opts) => {
exec.sync('tsc')
})
task('start', ['build'], function* (opts) {
require('./index.js')
})
task('start', ['build'], function* (opts) {
require('./index.js')
})
task('auth', 'authenticate google sdk', (opts) => {
exec('gcloud auth login')
})
task('deploy', 'deploy reader to appengine', ['build'], (opts) => {
exec('gcloud app deploy --quiet --project crowdstart-us app.ethereum.yaml --version=v1')
})
task('browse', 'view application from web browser', (opts) => {
exec('gcloud app browse -s ethereum-reader --project crowdstart-us app.ethereum.yaml')
})
task('logs', 'view application logs', (opts) => {
exec('gcloud app logs tail -s ethereum-reader --project crowdstart-us app.ethereum.yaml')
})
task('deploy:test', 'deploy reader to appengine', ['build'], (opts) => {
exec('gcloud app deploy --quiet --project crowdstart-us app.ethereum-ropsten.yaml --version=v1')
})
task('browse:test', 'view application from web browser', (opts) => {
exec('gcloud app browse -s ethereum-ropsten-reader --project crowdstart-us app.ethereum-ropsten.yaml')
})
task('logs:test', 'view application logs', (opts) => {
exec('gcloud app logs tail -s ethereum-ropsten-reader --project crowdstart-us app.ethereum-ropsten.yaml')
})