1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-02-13 19:42:12 +02:00

Move app config to app-config.json

This commit is contained in:
Chen-I Lim 2021-01-20 14:09:41 -08:00
parent 33d5dda7e3
commit d5d59ed71f
5 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -47,6 +47,8 @@ octo*.db
.eslintcache
.vscode/settings.json
.prettierrc.json
# config.json is copied from app-config.json in the Makefile
mac/resources/config.json
mac/temp
mac/dist
linux/bin

View File

@ -108,6 +108,7 @@ mac-app: server-mac webapp
rm -rf mac/resources/pack
mkdir -p mac/resources/bin
cp bin/mac/octoserver mac/resources/bin/octoserver
cp -R app-config.json mac/resources/config.json
cp -R webapp/pack mac/resources/pack
mkdir -p mac/temp
xcodebuild archive -workspace mac/Tasks.xcworkspace -scheme Tasks -archivePath mac/temp/tasks.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGNING_ALLOWED="NO"
@ -120,20 +121,18 @@ win-app: server-win webapp
cd win; make build
mkdir -p win/temp/bin
cp -R bin/win/octoserver.exe win/temp/bin
cp -R config.json win/temp
mkdir -p win/temp/webapp
cp -R webapp/pack win/temp/webapp/pack
cp -R app-config.json win/temp/config.json
cp -R webapp/pack win/temp/pack
mkdir -p win/dist
# cd win/temp; tar -acf ../dist/tasks-win.zip .
cd win/temp; powershell "Compress-Archive * ../dist/tasks-win.zip"
linux-app: server-linux webapp
rm -rf linux/temp
mkdir -p linux/temp/tasks-app/webapp
mkdir -p linux/dist
cp -R bin/linux/octoserver linux/temp/tasks-app/
cp -R config.json linux/temp/tasks-app/
cp -R webapp/pack linux/temp/tasks-app/webapp/pack
cp -R app-config.json linux/temp/tasks-app/config.json
cp -R webapp/pack linux/temp/tasks-app/pack
cd linux; make build
cp -R linux/bin/tasks-app linux/temp/tasks-app/
cd linux/temp; tar -zcf ../dist/tasks-linux.tar.gz tasks-app

View File

@ -3,7 +3,6 @@
"port": 8088,
"dbtype": "sqlite3",
"dbconfig": "./octo.db",
"postgres_dbconfig": "dbname=octo sslmode=disable",
"useSSL": false,
"webpath": "./pack",
"filespath": "./files",

View File

@ -29,7 +29,7 @@ func main() {
w.SetTitle("Octo Tasks")
w.SetSize(1024, 768, webview.HintNone)
w.Navigate("http://localhost:8000")
w.Navigate("http://localhost:8088")
w.Run()
cancel()
}

View File

@ -36,7 +36,7 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
cmd := runOctoTasks(ctx)
ui, err := lorca.New("http://localhost:8000", "", 1024, 768)
ui, err := lorca.New("http://localhost:8088", "", 1024, 768)
if err != nil {
log.Fatal(err)
}