Rework Zipline
This commit is contained in:
parent
baba828bdb
commit
800c37de3a
@ -40,9 +40,11 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
cp /opt/zipline/.env /opt/
|
cp /opt/zipline/.env /opt/
|
||||||
rm -R /opt/zipline
|
mkdir -p /opt/zipline-updload
|
||||||
|
cp -R /opt/zipline/updload/* /opt/zipline-upload/ || true
|
||||||
curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip")
|
curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip")
|
||||||
unzip -q v${RELEASE}.zip
|
unzip -q v${RELEASE}.zip
|
||||||
|
rm -R /opt/zipline
|
||||||
mv zipline-${RELEASE} /opt/zipline
|
mv zipline-${RELEASE} /opt/zipline
|
||||||
cd /opt/zipline
|
cd /opt/zipline
|
||||||
mv /opt/.env /opt/zipline/.env
|
mv /opt/.env /opt/zipline/.env
|
||||||
|
@ -51,7 +51,8 @@ msg_ok "Set up PostgreSQL"
|
|||||||
|
|
||||||
msg_info "Installing Zipline (Patience)"
|
msg_info "Installing Zipline (Patience)"
|
||||||
cd /opt
|
cd /opt
|
||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
#RELEASE=$(curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
RELEASE="3.7.13"
|
||||||
curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip")
|
curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip")
|
||||||
unzip -q v${RELEASE}.zip
|
unzip -q v${RELEASE}.zip
|
||||||
mv zipline-${RELEASE} /opt/zipline
|
mv zipline-${RELEASE} /opt/zipline
|
||||||
@ -62,6 +63,8 @@ CORE_SECRET=$SECRET_KEY
|
|||||||
CORE_HOSTNAME=0.0.0.0
|
CORE_HOSTNAME=0.0.0.0
|
||||||
CORE_PORT=3000
|
CORE_PORT=3000
|
||||||
CORE_RETURN_HTTPS=false
|
CORE_RETURN_HTTPS=false
|
||||||
|
DATASOURCE_TYPE=local
|
||||||
|
DATASOURCE_LOCAL_DIRECTORY=/opt/zipline-uploads
|
||||||
EOF
|
EOF
|
||||||
$STD pnpm install
|
$STD pnpm install
|
||||||
$STD pnpm build
|
$STD pnpm build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user