Browse Source

Platformize

Nikola Kotur 5 years ago
parent
commit
edf5df930a
3 changed files with 31 additions and 0 deletions
  1. 27 0
      .platform.app.yaml
  2. 3 0
      .platform/routes.yaml
  3. 1 0
      .platform/services.yaml

+ 27 - 0
.platform.app.yaml

@@ -0,0 +1,27 @@
+name: app
+
+type: "python:3.6"
+
+hooks:
+  build: |
+    pip install -r requirements.txt
+    pip install -e .
+
+web:
+  commands:
+    start: "python run_server.py"
+  locations:
+    "/":
+      root: ""
+      passthru: true
+      allow: false
+
+mounts:
+    tmp:
+        source: local
+        source_path: tmp
+    logs:
+        source: local
+        source_path: logs
+
+disk: 32

+ 3 - 0
.platform/routes.yaml

@@ -0,0 +1,3 @@
+"https://{default}/":
+   type: upstream
+   upstream: "app:http"

+ 1 - 0
.platform/services.yaml

@@ -0,0 +1 @@
+# Empty