first-fix
This commit is contained in:
1 parent
6d87c1edc8
commit
565d9d673a
6284 files changed
+820267
-76
No files matched your search
@@ -0,0 +1,29 @@
|
||||
@ECHO OFF
|
||||
|
||||
setlocal ENABLEEXTENSIONS
|
||||
|
||||
SET BASE=${project.basedir}\target
|
||||
SET LOADER_PATH=%BASE%\conf,%BASE%\extensions
|
||||
|
||||
SET jarfile=%BASE%\thingsboard-${project.version}-boot.jar
|
||||
SET installDir=%BASE%\data
|
||||
SET loadDemo=true
|
||||
|
||||
IF "%SQL_DATA_FOLDER%" == "" (
|
||||
SET SQL_DATA_FOLDER=/tmp
|
||||
)
|
||||
|
||||
java -cp %jarfile% -Dloader.main=org.thingsboard.server.ThingsboardInstallApplication^
|
||||
-Dinstall.data_dir=%installDir%^
|
||||
-Dinstall.load_demo=%loadDemo%^
|
||||
-Dspring.jpa.hibernate.ddl-auto=none^
|
||||
-Dinstall.upgrade=false^
|
||||
-Dlogging.config=%BASE%\windows\install\logback.xml^
|
||||
org.springframework.boot.loader.PropertiesLauncher
|
||||
|
||||
if errorlevel 1 (
|
||||
@echo ThingsBoard DB installation failed!
|
||||
POPD
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
@echo ThingsBoard DB installed successfully!
|
||||
Reference in new issue
Block a user