palondomus commited on
Commit
c3dcd65
·
1 Parent(s): 73a799d

Fly.io implementation

Browse files
Files changed (3) hide show
  1. .dockerignore +15 -0
  2. Dockerfile +2 -1
  3. fly.toml +17 -0
.dockerignore ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # flyctl launch added from .gitignore
2
+ **\*.json
3
+ **\revisionbankenv
4
+ **\exampleimage.json
5
+ **\Procfile
6
+ **\yes
7
+ **\yes.pub
8
+ **\test.js
9
+ **\test.py
10
+ **\test3.py
11
+ **\test4.py
12
+ **\mydata.json
13
+ **\.space
14
+ **\revisionbankscheduler
15
+ fly.toml
Dockerfile CHANGED
@@ -26,4 +26,5 @@ WORKDIR $HOME/app
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app
28
 
29
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860","--reload"]
 
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app
28
 
29
+ #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860","--reload"]
30
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080","--reload"]
fly.toml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # fly.toml app configuration file generated for revisionbankbe on 2023-08-09T04:14:25+01:00
2
+ #
3
+ # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
+ #
5
+
6
+ app = "revisionbankbe"
7
+ primary_region = "lhr"
8
+
9
+ [build]
10
+
11
+ [http_service]
12
+ internal_port = 8080
13
+ force_https = true
14
+ auto_stop_machines = true
15
+ auto_start_machines = true
16
+ min_machines_running = 0
17
+ processes = ["app"]