# Makefile used to build XDS daemon Web Server
# Application Version
-VERSION := 0.2.1
+VERSION := 0.2.2
# Syncthing version to install
SYNCTHING_VERSION = 0.14.28
DESTDIR := /usr/local/bin
endif
ifeq ($(origin DESTDIR_WWW), undefined)
- DESTDIR_WWW := $(DESTDIR)/www-xds-server
+ DESTDIR_WWW := $(DESTDIR)/www
endif
HOST_GOOS=$(shell go env GOOS)
.PHONY: package
package: clean
make -f $(ROOT_SRCDIR)/Makefile all install DESTDIR=$(PACKAGE_DIR)/xds-server
- make -f $(ROOT_SRCDIR)/Makefile conffile DESTDIR=$(PACKAGE_DIR)/xds-server DESTDIR_WWW=www-xds-server
+ make -f $(ROOT_SRCDIR)/Makefile conffile DESTDIR=$(PACKAGE_DIR)/xds-server DESTDIR_WWW=www
+ cp -r $(ROOT_SRCDIR)/conf.d $(PACKAGE_DIR)/xds-server
rm -f $(ROOT_SRCDIR)/$(PACKAGE_ZIPFILE)
(cd $(PACKAGE_DIR) && zip -r $(ROOT_SRCDIR)/$(PACKAGE_ZIPFILE) ./xds-server)
--- /dev/null
+{
+ "webAppDir": "www",
+ "httpPort": "8000",
+ "shareRootDir": "${HOME}/.xds/share",
+ "logsDir": "/tmp/xds-server/logs",
+ "sdkRootDir": "/xdt/sdk",
+ "syncthing": {
+ "binDir": "",
+ "home": "${HOME}/.xds/syncthing-config",
+ "gui-address": "http://localhost:8384"
+ }
+}
--- /dev/null
+# defaults file for XDS Server
+# this file is used for service environment in /lib/systemd/system/xds-server.service
+
+# JSON config file to use
+#APP_CONFIG=/home/devel/.config/xds/server/config.json
+
+# Logging level (supported levels: panic, fatal, error, warn, info, debug)
+#LOG_LEVEL=info
+
+# Filename where logs will be redirected (default stdout)
+#LOG_FILENAME=/tmp/xds/logs/xds-server.logs
User=devel
Type=forking
EnvironmentFile=-/etc/default/xds-server
-ExecStart=/usr/local/bin/xds-server-start.sh
+ExecStart=/opt/AGL/xds/xds-server-start.sh
[Install]
WantedBy=multi-user.target
{
"webAppDir": "webapp/dist",
"httpPort": "8000",
- "shareRootDir": "${ROOT_DIR}/tmp/builder_dev_host/share",
+ "shareRootDir": "${HOME}/.xds/share",
"logsDir": "/tmp/xds-server/logs",
"sdkRootDir": "/xdt/sdk",
"syncthing": {
"binDir": "./bin",
- "home": "${ROOT_DIR}/tmp/builder_dev_host/syncthing-config",
+ "home": "${HOME}/.xds/syncthing-config",
"gui-address": "http://localhost:8384"
}
}