-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.replit
39 lines (31 loc) · 1.1 KB
/
.replit
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
# The command that runs the program. If the interpreter field is set, it will have priority and this run command will do nothing
run = "python3 app.py"
# The primary language of the repl. There can be others, though!
language = "python3"
entrypoint = "app.py"
# A list of globs that specify which files and directories should
# be hidden in the workspace.
hidden = ["venv", ".config", "**/__pycache__", "**/.mypy_cache", "**/*.pyc"]
modules = ["python-3.10"]
# Specifies which nix channel to use when building the environment.
[nix]
channel = "stable-22_11"
[env]
# Enable unit tests. This is only supported for a few languages.
[unitTest]
language = "python3"
# These are the files that need to be preserved when this
# language template is used as the base language template
# for Python repos imported from GitHub
[gitHubImport]
requiredFiles = [".replit", "replit.nix", ".config", "venv"]
[deployment]
run = ["sh", "-c", "python3 app.py"]
deploymentTarget = "cloudrun"
build = ["sh", "-c", "pip install -r requirements.txt"]
[[ports]]
localPort = 5000
externalPort = 5000
[[ports]]
localPort = 8080
externalPort = 80