From cacdcaff367f9d1cbb1c890b94c9f44ef8e2621f Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 5 Jul 2023 12:58:21 +0200 Subject: [PATCH 1/6] (feat) copy token list to conf folder --- gateway-setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gateway-setup.sh b/gateway-setup.sh index 41ec6e5e27..5e4c629dac 100755 --- a/gateway-setup.sh +++ b/gateway-setup.sh @@ -25,8 +25,10 @@ copy_configs () { echo # Make destination folder if needed mkdir $HOST_CONF_PATH + mdkir $HOST_CONF_PATH/lists # Copy all files in the source folder to the destination folder cp $TEMPLATE_DIR/**.yml $HOST_CONF_PATH + cp $TEMPLATE_DIR/lists/**.json $HOST_CONF_PATH # Confirm that the files were copied if [ $? -eq 0 ]; then echo "Files successfully copied from $TEMPLATE_DIR to $HOST_CONF_PATH" From db1f73be7ab4ca462271a48f93bcc3e15d985258 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 5 Jul 2023 14:26:39 +0200 Subject: [PATCH 2/6] (fix) select the correct folder to drop the lists --- gateway-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-setup.sh b/gateway-setup.sh index 5e4c629dac..4002d7515b 100755 --- a/gateway-setup.sh +++ b/gateway-setup.sh @@ -28,7 +28,7 @@ copy_configs () { mdkir $HOST_CONF_PATH/lists # Copy all files in the source folder to the destination folder cp $TEMPLATE_DIR/**.yml $HOST_CONF_PATH - cp $TEMPLATE_DIR/lists/**.json $HOST_CONF_PATH + cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH # Confirm that the files were copied if [ $? -eq 0 ]; then echo "Files successfully copied from $TEMPLATE_DIR to $HOST_CONF_PATH" From c6dfa4cc490c7cf2c20cc0f594282088854b0287 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 5 Jul 2023 16:30:02 +0200 Subject: [PATCH 3/6] (fix) revert changes in gateway setup --- gateway-setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gateway-setup.sh b/gateway-setup.sh index 4002d7515b..5c7ce2069c 100755 --- a/gateway-setup.sh +++ b/gateway-setup.sh @@ -25,7 +25,6 @@ copy_configs () { echo # Make destination folder if needed mkdir $HOST_CONF_PATH - mdkir $HOST_CONF_PATH/lists # Copy all files in the source folder to the destination folder cp $TEMPLATE_DIR/**.yml $HOST_CONF_PATH cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH @@ -43,7 +42,7 @@ copy_lists () { # Make destination folder if needed mkdir $HOST_CONF_PATH/lists # Copy all files in the source folder to the destination folder - cp $TEMPLATE_DIR/lists/*.json $HOST_CONF_PATH/lists + cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH # Confirm that the files were copied if [ $? -eq 0 ]; then echo "Files successfully copied from $TEMPLATE_DIR/lists to $HOST_CONF_PATH" From 243531cfd19f76e08b7600fa16a60b759b8b2d52 Mon Sep 17 00:00:00 2001 From: dardonacci <36869960+cardosofede@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:32:04 +0200 Subject: [PATCH 4/6] Update gateway-setup.sh --- gateway-setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/gateway-setup.sh b/gateway-setup.sh index 5c7ce2069c..85a193e425 100755 --- a/gateway-setup.sh +++ b/gateway-setup.sh @@ -27,7 +27,6 @@ copy_configs () { mkdir $HOST_CONF_PATH # Copy all files in the source folder to the destination folder cp $TEMPLATE_DIR/**.yml $HOST_CONF_PATH - cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH # Confirm that the files were copied if [ $? -eq 0 ]; then echo "Files successfully copied from $TEMPLATE_DIR to $HOST_CONF_PATH" From 2e556433a996d329e82b390d25242de93b806dc3 Mon Sep 17 00:00:00 2001 From: vic-en Date: Wed, 12 Jul 2023 08:56:27 -0500 Subject: [PATCH 5/6] copy new token files --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c4c0e1ec69..09abf60788 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "Apache-2.0", "repository": "https://github.com/hummingbot/gateway", "scripts": { - "prebuild": "rimraf dist && mkdir dist", + "prebuild": "rimraf dist && mkdir dist && yarn copy-files:token-list", "build": "tsc --skipLibCheck --project ./ && yarn copy-files", "clean": "rm -rf ./node_modules && rm -rf ./coverage && rm -rf ./logs && yarn run clean:config", "clean:config": "find ./conf -maxdepth 1 -regextype posix-extended -regex '.*.*' -delete", @@ -16,6 +16,7 @@ "dev:debug": "NODE_ENV=dev DEBUG=* nodemon src/index.ts", "start": "/bin/bash ./startup.sh", "copy-files": "copyfiles -a 'src/**/schema/*.json' 'src/templates/*.yml' 'src/templates/lists/*.json' 'test/services/data/**/*.*' dist", + "copy-files:token-list": "mkdir -p conf/lists && copyfiles -u 'src/templates/lists/*.json' conf/lists", "test": "jest --verbose", "test:debug": "node --inspect node_modules/.bin/jest --watch --runInBand", "test:unit": "NODE_OPTIONS=--max_old_space_size=10240 jest --runInBand --verbose ./test/", From 5631e235e5a51133f69504c72f5b86a51a7612eb Mon Sep 17 00:00:00 2001 From: vic-en <31972210+vic-en@users.noreply.github.com> Date: Wed, 12 Jul 2023 09:23:56 -0500 Subject: [PATCH 6/6] Update gateway-setup.sh --- gateway-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-setup.sh b/gateway-setup.sh index 85a193e425..376d499dcc 100755 --- a/gateway-setup.sh +++ b/gateway-setup.sh @@ -41,7 +41,7 @@ copy_lists () { # Make destination folder if needed mkdir $HOST_CONF_PATH/lists # Copy all files in the source folder to the destination folder - cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH + cp -rf $TEMPLATE_DIR/ $HOST_CONF_PATH # Confirm that the files were copied if [ $? -eq 0 ]; then echo "Files successfully copied from $TEMPLATE_DIR/lists to $HOST_CONF_PATH"