Add deployment script for kiss data

This commit is contained in:
2025-02-12 07:20:56 +09:00
commit 5cf53e3002
12 changed files with 84 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
data/
data-db/
log/
profile.json
mock-server.json
real-server.json
shop-server.json

BIN
KissMeConsole Executable file

Binary file not shown.

6
candle_all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole candle all
./push.sh candle_min

6
candle_day_all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole candle day all resume
./push.sh candle_day

6
candle_week_all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole candle week all resume
./push.sh candle_week

5
db_candle_today.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
TODAY=`date '+%Y %m %d'`
./KissMeConsole db candle build all ${TODAY}

6
investor_all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole investor all resume
./push.sh investor

5
now_all.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole now all

27
push.sh Executable file
View File

@@ -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}"

5
shop.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole update shop

6
shorts_all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole shorts all resume
./push.sh shorts

5
top_all.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
./KissMeConsole login real
./KissMeConsole top all