commit 5cf53e3002b0cac9b7ce2da2c4a5ed5a7b42ee2c Author: ened Date: Wed Feb 12 07:20:56 2025 +0900 Add deployment script for kiss data diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43a0063 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +data/ +data-db/ +log/ +profile.json +mock-server.json +real-server.json +shop-server.json diff --git a/KissMeConsole b/KissMeConsole new file mode 100755 index 0000000..ede360a Binary files /dev/null and b/KissMeConsole differ diff --git a/candle_all.sh b/candle_all.sh new file mode 100755 index 0000000..d61b063 --- /dev/null +++ b/candle_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole candle all + +./push.sh candle_min diff --git a/candle_day_all.sh b/candle_day_all.sh new file mode 100755 index 0000000..4296cf2 --- /dev/null +++ b/candle_day_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole candle day all resume + +./push.sh candle_day diff --git a/candle_week_all.sh b/candle_week_all.sh new file mode 100755 index 0000000..31cb8f7 --- /dev/null +++ b/candle_week_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole candle week all resume + +./push.sh candle_week diff --git a/db_candle_today.sh b/db_candle_today.sh new file mode 100755 index 0000000..baaee9a --- /dev/null +++ b/db_candle_today.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +TODAY=`date '+%Y %m %d'` +./KissMeConsole db candle build all ${TODAY} + diff --git a/investor_all.sh b/investor_all.sh new file mode 100755 index 0000000..9953a68 --- /dev/null +++ b/investor_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole investor all resume + +./push.sh investor diff --git a/now_all.sh b/now_all.sh new file mode 100755 index 0000000..2a17f0c --- /dev/null +++ b/now_all.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole now all + diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..f49c17c --- /dev/null +++ b/push.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + + +cd data + +git config user.name "ened" +git config user.email "acedealer2014@gmail.com" + +git pull origin main +git add "*.csv" +git add "**/*.csv" + +MSG=$1 +TODAY=$(date +'%Y-%m-%d') +ITEMS=`git diff --cached --shortstat | cut -d " " -f2` +git commit -m "Update ${TODAY} ${ITEMS} ${MSG}" +git push origin main + +git pull origin main + +cd .. + + +echo "Update ${TODAY}" + diff --git a/shop.sh b/shop.sh new file mode 100755 index 0000000..b300ca9 --- /dev/null +++ b/shop.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole update shop + diff --git a/shorts_all.sh b/shorts_all.sh new file mode 100755 index 0000000..39ba471 --- /dev/null +++ b/shorts_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole shorts all resume + +./push.sh shorts diff --git a/top_all.sh b/top_all.sh new file mode 100755 index 0000000..1e933a9 --- /dev/null +++ b/top_all.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +./KissMeConsole login real +./KissMeConsole top all +