File tree Expand file tree Collapse file tree 9 files changed +28
-11
lines changed
src/modules/shared/services/instances-business Expand file tree Collapse file tree 9 files changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -497,8 +497,8 @@ jobs:
497
497
root : .
498
498
paths :
499
499
- release/RedisInsight*.deb
500
- - release/RedisInsight*.AppImage
501
500
- release/RedisInsight*.rpm
501
+ - release/RedisInsight*.AppImage
502
502
- release/*-linux.yml
503
503
- release/redisstack
504
504
macosx :
Original file line number Diff line number Diff line change 3
3
ARCH=${ARCH:- x64}
4
4
WORKING_DIRECTORY=$( pwd)
5
5
SOURCE_APP=${SOURCE_APP:- " RedisInsight-preview-linux.AppImage" }
6
+ APP_FOLDER_NAME=" RedisInsight-preview-linux"
6
7
TAR_NAME=" RedisInsight-preview-app-linux.$ARCH .tar.gz"
7
8
TMP_FOLDER=" /tmp/RedisInsight-app-$ARCH "
8
9
@@ -15,8 +16,9 @@ cp "./release/$SOURCE_APP" "$TMP_FOLDER"
15
16
cd " $TMP_FOLDER " || exit 1
16
17
17
18
./" $SOURCE_APP " --appimage-extract
18
- cd squashfs-root || exit 1
19
+ mv squashfs-root " $APP_FOLDER_NAME "
20
+
21
+ tar -czvf " $TAR_NAME " " $APP_FOLDER_NAME "
19
22
20
- tar -czvf " $TAR_NAME " ./*
21
23
cp " $TAR_NAME " " $WORKING_DIRECTORY /release/redisstack/"
22
24
cd " $WORKING_DIRECTORY " || exit 1
Original file line number Diff line number Diff line change @@ -19,10 +19,14 @@ cp redisinsight/api/.yarnclean.prod redisinsight/api/.yarnclean
19
19
yarn --cwd ./redisinsight/api autoclean --force
20
20
21
21
rm -rf redisinsight/build.zip
22
+
23
+ cp LICENSE ./redisinsight
24
+
22
25
cd redisinsight && tar -czvf build.tar.gz \
23
26
api/node_modules \
24
27
api/dist \
25
28
ui/dist \
29
+ LICENSE \
26
30
&& cd ..
27
31
28
32
mkdir -p release/redisstack
Original file line number Diff line number Diff line change 3
3
ARCH=${ARCH:- x64}
4
4
WORKING_DIRECTORY=$( pwd)
5
5
TAR_NAME=" RedisInsight-preview-app-darwin.$ARCH .tar.gz"
6
- TMP_FOLDER=" /tmp/RedisInsight-app-$ARCH "
6
+ APP_FOLDER_NAME=" RedisInsight-preview.app"
7
+ TMP_FOLDER=" /tmp/$APP_FOLDER_NAME "
7
8
8
9
rm -rf " $TMP_FOLDER "
9
10
10
11
mkdir -p " $WORKING_DIRECTORY /release/redisstack"
11
12
mkdir -p " $TMP_FOLDER "
12
13
13
14
hdiutil attach " ./release/RedisInsight-preview-mac-$ARCH .dmg"
14
- cp -r /Volumes/RedisInsight-* /RedisInsight-preview.app/ * " $TMP_FOLDER "
15
- cd " $TMP_FOLDER " || exit 1
16
- tar -czvf " $TAR_NAME " ./ *
15
+ cp -a /Volumes/RedisInsight-* /RedisInsight-preview.app " /tmp "
16
+ cd " /tmp " || exit 1
17
+ tar -czvf " $TAR_NAME " " $APP_FOLDER_NAME "
17
18
cp " $TAR_NAME " " $WORKING_DIRECTORY /release/redisstack/"
18
19
cd " $WORKING_DIRECTORY " || exit 1
19
20
hdiutil unmount /Volumes/RedisInsight-* /
Original file line number Diff line number Diff line change 94
94
},
95
95
{
96
96
"from" : " ./resources/app" ,
97
- "to" : " .. /app" ,
97
+ "to" : " ./app" ,
98
98
"filter" : [" **/*" ]
99
99
}
100
100
]
Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
+ import * as os from 'os' ;
2
3
3
- const homedir = join ( require ( 'os' ) . homedir ( ) , process . env . APP_FOLDER_NAME || '.redisinsight-preview' ) ;
4
+ const homedir = process . env . APP_FOLDER_ABSOLUTE_PATH
5
+ || ( join ( os . homedir ( ) , process . env . APP_FOLDER_NAME || '.redisinsight-preview' ) ) ;
4
6
5
7
export default {
6
8
dir_path : {
Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
+ import * as os from 'os' ;
2
3
3
- const homedir = join ( require ( 'os' ) . homedir ( ) , process . env . APP_FOLDER_NAME || '.redisinsight-v2.0-stage' ) ;
4
+ const homedir = process . env . APP_FOLDER_ABSOLUTE_PATH
5
+ || ( join ( os . homedir ( ) , process . env . APP_FOLDER_NAME || '.redisinsight-v2.0-stage' ) ) ;
4
6
5
7
export default {
6
8
dir_path : {
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ export class AutoDiscoveryService implements OnModuleInit {
34
34
return ;
35
35
}
36
36
37
+ // additional check for existing databases
38
+ // We should not start auto discover if any database already exists
39
+ if ( ( await this . databaseProvider . getAll ( ) ) . length ) {
40
+ return ;
41
+ }
42
+
37
43
const settings = await this . settingsService . getSettings ( ) ;
38
44
// check agreements to understand if it is first launch
39
45
if ( ! settings . agreements ) {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ const launchApiServer = async () => {
102
102
const detectPortConst = await detectPort ( port ) ;
103
103
process . env . API_PORT = detectPortConst ?. toString ( ) ;
104
104
log . info ( 'Available port:' , detectPortConst ) ;
105
- server ( ) ;
105
+ await server ( ) ;
106
106
} catch ( error ) {
107
107
log . error ( 'Catch server error:' , error ) ;
108
108
}
You can’t perform that action at this time.
0 commit comments