2020-10-08 18:26:05 +02:00
|
|
|
# mattermost-octo-tasks
|
|
|
|
|
2020-10-26 20:45:40 +01:00
|
|
|
## Building the server
|
2020-10-08 18:26:05 +02:00
|
|
|
|
|
|
|
```
|
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)
|
2020-10-26 20:45:40 +01:00
|
|
|
* Ubuntu 18.04
|
2020-10-08 19:01:56 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-10-26 20:45:40 +01:00
|
|
|
## Running and testing the server
|
2020-10-08 18:29:48 +02:00
|
|
|
|
|
|
|
To start the server:
|
|
|
|
```
|
|
|
|
./bin/octoserver
|
|
|
|
```
|
|
|
|
|
|
|
|
Server settings are in config.json.
|
|
|
|
|
|
|
|
Open a browser to [http://localhost:8000](http://localhost:8000) to start.
|
2020-10-26 20:45:40 +01:00
|
|
|
|
|
|
|
## Building and running the macOS app
|
|
|
|
You can build the Mac app on a Mac running macOS Catalina (10.15.6+) and with Xcode 12.0+. A valid development signing certificate must be available.
|
|
|
|
|
|
|
|
First build the server using the steps above, then run:
|
|
|
|
```
|
|
|
|
make mac
|
|
|
|
```
|
|
|
|
|
|
|
|
To run, launch mac/dist/Tasks.app
|