Skip to content

Commit feb33aa

Browse files
GCloud setup
1 parent bd90b46 commit feb33aa

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.gcloudignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file specifies files that are *not* uploaded to Google Cloud Platform
2+
# using gcloud. It follows the same syntax as .gitignore, with the addition of
3+
# "#!include" directives (which insert the entries of the given .gitignore-style
4+
# file at that point).
5+
#
6+
# For more information, run:
7+
# $ gcloud topic gcloudignore
8+
#
9+
.gcloudignore
10+
# If you would like to upload your .git directory, .gitignore file or files
11+
# from your .gitignore file, remove the corresponding line
12+
# below:
13+
.git
14+
.gitignore
15+
16+
# Node.js dependencies:
17+
node_modules/

app.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
runtime: nodejs12

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "random jokes API",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"start": "node ./",
9+
"deploy": "gcloud config set project jokes-api && gcloud app deploy"
810
},
911
"repository": {
1012
"type": "git",

0 commit comments

Comments
 (0)