
Substantially borrowed from upstream ref: 13a208ee88e55 (before they started editing generated artefacts instead of source). Integrated, including: - Remove previously removed features: emoji, hats, and name colors - Compensate for lack of unified root template - Add React build process to Dockerfile and `bootstrap/init.sh` - Preliminary integration of chat websocket workers For testing, modify `supervisord.conf.dev` to put chat on port 80 and the site service on some other port. Then visit: http://localhost/chat Still to do: - Access control for specific small-groups (and admins probably): Set the values somewhere (site_settings.json? Redis?) and use for authorization in `chat_is_allowed`. - Proxying only /chat to the websocket workers - Chat persistance across restarts: either Redis devops or to DB
12 lines
235 B
Bash
Executable file
12 lines
235 B
Bash
Executable file
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
python3 -m flask db upgrade # this does not actually return error codes properly!
|
|
python3 -m flask cron_setup
|
|
|
|
cd ./chat
|
|
yarn install
|
|
yarn chat
|
|
cd ..
|
|
|
|
/usr/local/bin/supervisord -c /etc/supervisord.conf
|