mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Add .vscode files to instruct VSCode how to run ejabberd
This commit is contained in:
parent
e191bc253d
commit
a08c038c9c
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"erlang-ls.erlang-ls"
|
||||||
|
]
|
||||||
|
}
|
49
.vscode/launch.json
vendored
Normal file
49
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Relive",
|
||||||
|
"type": "erlang",
|
||||||
|
"request": "launch",
|
||||||
|
"runinterminal": [
|
||||||
|
".vscode/relive.sh"
|
||||||
|
],
|
||||||
|
"projectnode": "ejabberd@localhost",
|
||||||
|
"cookie": "COOKIE",
|
||||||
|
"timeout": 300,
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Relive (alternate)",
|
||||||
|
"type": "erlang",
|
||||||
|
"request": "launch",
|
||||||
|
"runinterminal": [
|
||||||
|
"./rebar3", "shell",
|
||||||
|
"--apps", "ejabberd",
|
||||||
|
"--config", "rel/relive.config",
|
||||||
|
"--script", "rel/relive.escript",
|
||||||
|
"--name", "ejabberd@localhost",
|
||||||
|
"--setcookie", "COOKIE"
|
||||||
|
],
|
||||||
|
"projectnode": "ejabberd@localhost",
|
||||||
|
"cookie": "COOKIE",
|
||||||
|
"timeout": 300,
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Attach",
|
||||||
|
"type": "erlang",
|
||||||
|
"request": "attach",
|
||||||
|
"runinterminal": [
|
||||||
|
"./rebar3", "shell",
|
||||||
|
"--sname", "clean@localhost",
|
||||||
|
"--setcookie", "COOKIE",
|
||||||
|
"--start-clean"
|
||||||
|
],
|
||||||
|
"projectnode": "ejabberd@localhost",
|
||||||
|
"cookie": "COOKIE",
|
||||||
|
"timeout": 300,
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
6
.vscode/relive.sh
vendored
Executable file
6
.vscode/relive.sh
vendored
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[ ! -f Makefile ] \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& ./configure --with-rebar=./rebar3 \
|
||||||
|
&& make deps
|
||||||
|
|
||||||
|
make relive
|
13
.vscode/settings.json
vendored
Normal file
13
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"editor.tabSize": 8,
|
||||||
|
"remote.portsAttributes": {
|
||||||
|
"1883": {"label": "MQTT", "onAutoForward": "silent"},
|
||||||
|
"4369": {"label": "EPMD", "onAutoForward": "silent"},
|
||||||
|
"5222": {"label": "XMPP C2S", "onAutoForward": "silent"},
|
||||||
|
"5223": {"label": "XMPP C2S (legacy)", "onAutoForward": "silent"},
|
||||||
|
"5269": {"label": "XMPP S2S", "onAutoForward": "silent"},
|
||||||
|
"5280": {"label": "HTTP", "onAutoForward": "silent"},
|
||||||
|
"5443": {"label": "HTTPS", "onAutoForward": "silent"},
|
||||||
|
"7777": {"label": "XMPP SOCKS5 (proxy65)", "onAutoForward": "silent"}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user