2020-10-08 18:26:05 +02:00
|
|
|
# mattermost-octo-tasks
|
|
|
|
|
|
|
|
## Build instructions
|
|
|
|
|
|
|
|
```
|
2020-10-20 20:48:22 +02:00
|
|
|
cd webapp
|
|
|
|
npm install
|
|
|
|
npm run packdev
|
|
|
|
cd ..
|
2020-10-09 19:25:05 +02:00
|
|
|
make prebuild
|
2020-10-08 18:26:05 +02:00
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Currently tested with:
|
|
|
|
* Go 1.15.2
|
2020-10-08 19:01:56 +02:00
|
|
|
* MacOS Catalina (10.15.6)
|
|
|
|
|
|
|
|
The server defaults to using sqlite as the store, but can be configured to use Postgres:
|
|
|
|
* In config.json
|
|
|
|
* Set dbtype to "postgres"
|
|
|
|
* Set dbconfig to the connection string (which you can copy from dbconfig_postgres)
|
|
|
|
* Create a new "octo" database with psql
|
|
|
|
* Restart the server
|
2020-10-08 18:29:48 +02:00
|
|
|
|
|
|
|
## Running and testing
|
|
|
|
|
|
|
|
To start the server:
|
|
|
|
```
|
|
|
|
./bin/octoserver
|
|
|
|
```
|
|
|
|
|
|
|
|
Server settings are in config.json.
|
|
|
|
|
|
|
|
Open a browser to [http://localhost:8000](http://localhost:8000) to start.
|