-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDjangoCommands.sublime-settings
67 lines (67 loc) · 2.11 KB
/
DjangoCommands.sublime-settings
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
// Path to python interpreter
// It is being overriden when set_virutal_env command is invoked.
"python_bin": null,
// Force finding manage.py in this directory
"django_project_root" : null,
// List of paths where to find virtual environments
"python_virtualenv_paths": [
"~\\.virtualenvs", // virtualenvwrapper
"~\\.venv", // venv.bash https://github.com/wuub/venv
],
// Python executable version (in case of using the default)
"python_version": 3,
// Run server host
"server_host": "127.0.0.1",
// Run server in port
"server_port": "8000",
// Linux only: define your preferred terminal emulator
"linux_terminal": "x-terminal-emulator",
// Mac OSX only: define your preferred_terminal_emulator
"osx_terminal": "Terminal",
// Per project setting "python_interpreter" overrides "python_bin"
"project_override": true,
// Open browser pointint to root url after runserver command
"browser_after_runserver": false,
// Example Settings THIS SETTINGS ARE PER PROJECT FILE inside the settings
"server_custom_command":
{
"command": "gunicorn",
"args":
[
"example.wsgi:application",
"--bind",
"0.0.0.0:8000",
"--workers=3",
"--log-file=-"
]
},
//or
"server_custom_command":
{
"command": "uwsgi",
"args":
[
"--chdir=/path/to/your/project/",
"--module=example.wsgi:application",
"--env",
"DJANGO_SETTINGS_MODULE=example.settings",
"--socket=example.com:8000",
"--processes=5",
"--uid=1000",
"--gid=2000",
"--harakiri=20",
"--max-requests=5000",
"--vacuum"
],
"run_with_python": false
},
//or
"server_custom_command":
{
"command": "your_script.sh",
"args":
[],
"run_with_python": false
}
}