spug/spug_api/tools/start-ws.sh

10 lines
281 B
Bash
Raw Normal View History

2020-01-07 16:25:18 +00:00
#!/bin/bash
2020-01-15 12:48:22 +00:00
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
# Copyright: (c) <spug.dev@gmail.com>
# Released under the MIT License.
2020-01-07 16:25:18 +00:00
# start websocket service
2020-01-15 12:48:22 +00:00
2020-01-07 16:25:18 +00:00
cd $(dirname $(dirname $0))
source ./venv/bin/activate
2020-01-15 12:48:22 +00:00
exec daphne -p 9002 spug.asgi:application