aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-05-29 00:35:50 +0700
committerShulhan <m.shulhan@gmail.com>2020-05-29 00:35:50 +0700
commit6b03e4fd9670f865216a773545ea4a0bbf534582 (patch)
tree0a6f2fe174d7c81306fcb92759d4920e2914caf8
parentde982da9e2035c901b22493e52995d33ceed8501 (diff)
downloadkamusku-6b03e4fd9670f865216a773545ea4a0bbf534582.tar.xz
cmd: add deployment script for App Engine
-rw-r--r--.gcloudignore25
-rw-r--r--cmd/bot-kbbi/app.yaml9
-rw-r--r--cmd/www-kbbi/app.yaml8
3 files changed, 42 insertions, 0 deletions
diff --git a/.gcloudignore b/.gcloudignore
new file mode 100644
index 0000000..199e6d9
--- /dev/null
+++ b/.gcloudignore
@@ -0,0 +1,25 @@
+# This file specifies files that are *not* uploaded to Google Cloud Platform
+# using gcloud. It follows the same syntax as .gitignore, with the addition of
+# "#!include" directives (which insert the entries of the given .gitignore-style
+# file at that point).
+#
+# For more information, run:
+# $ gcloud topic gcloudignore
+#
+.gcloudignore
+# If you would like to upload your .git directory, .gitignore file or files
+# from your .gitignore file, remove the corresponding line
+# below:
+.git
+.gitignore
+
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+# Test binary, build with `go test -c`
+*.test
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out \ No newline at end of file
diff --git a/cmd/bot-kbbi/app.yaml b/cmd/bot-kbbi/app.yaml
new file mode 100644
index 0000000..89bf31a
--- /dev/null
+++ b/cmd/bot-kbbi/app.yaml
@@ -0,0 +1,9 @@
+service: bot-kbbi
+runtime: go113
+instance_class: F2
+automatic_scaling:
+ max_instances: 1
+env_variables:
+ DEBUG: "2"
+ TELEGRAM_TOKEN: "1121465148:AAH9vI-DkHUOPGTmy1Js0dxKSHLYIIkXaIE"
+ TELEGRAM_WEBHOOK_URL: "https://bot-kbbi-dot-kamuskubot.df.r.appspot.com"
diff --git a/cmd/www-kbbi/app.yaml b/cmd/www-kbbi/app.yaml
new file mode 100644
index 0000000..580f7ea
--- /dev/null
+++ b/cmd/www-kbbi/app.yaml
@@ -0,0 +1,8 @@
+service: default
+runtime: go113
+instance_class: F2
+automatic_scaling:
+ max_instances: 1
+env_variables:
+ KBBI_SUREL: "m.shulhan@gmail.com"
+ KBBI_SANDI: "tyuiopKEMDIKBUD5810"