2021-07-12 21:34:55 +00:00
# Cwtch Server
## Running
- cd app
- go build
- ./app
The app takes the following arguments
- -debug: enabled debug logging
2021-10-29 23:06:18 +00:00
- -exportServerBundle: Export the server bundle to a file called serverbundle
2021-08-31 15:10:24 +00:00
2021-07-12 21:34:55 +00:00
The app takes the following environment variables
- CWTCH_HOME: sets the config dir for the app
2021-10-04 23:21:41 +00:00
`env CONFIG_HOME=./conf ./app`
2021-07-12 21:34:55 +00:00
## Using the Server
When run the app will output standard log lines, one of which will contain the `tofubundle` in purple. This is the part you need to capture and import into a Cwtch client app so you can use the server for hosting groups
## Docker
2021-08-09 21:32:30 +00:00
Build by executing `docker build -f docker/Dockerfile .`
2021-08-31 15:10:24 +00:00
or run our prebuild ones with
`pull openpriv:cwtch-server`
and run it. It stores all Cwtch data in a Volume at `/var/lib/cwtch`