mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
feat: add Nomad run script
This commit is contained in:
parent
9314ce672a
commit
8e5b987b2c
3 changed files with 21 additions and 0 deletions
15
scripts/run-clustered.sh
Executable file
15
scripts/run-clustered.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
notify () {
|
||||
curl http://172.17.0.1:8081/notify -d "$1"
|
||||
}
|
||||
|
||||
curl http://172.17.0.1:8081/config > pluralkit.conf
|
||||
|
||||
notify "Cluster $NOMAD_ALLOC_INDEX starting"
|
||||
|
||||
export PluralKit__Bot__Cluster__NodeName="pluralkit-$NOMAD_ALLOC_INDEX"
|
||||
|
||||
dotnet bin/PluralKit.Bot.dll
|
||||
|
||||
notify "Cluster $NOMAD_ALLOC_INDEX exited with code $?"
|
||||
Loading…
Add table
Add a link
Reference in a new issue