test jotty
This commit is contained in:
parent
36ba002329
commit
ea78e8f0e8
@ -21,22 +21,22 @@ tar -xzf /tmp/jotty.tar.gz -C /opt/jotty
|
|||||||
|
|
||||||
msg_info "Setup jotty"
|
msg_info "Setup jotty"
|
||||||
cd /opt/jotty
|
cd /opt/jotty
|
||||||
unset NODE_OPTIONS
|
# unset NODE_OPTIONS
|
||||||
export NODE_OPTIONS="--max-old-space-size=3072"
|
# export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
# $STD yarn --frozen-lockfiled
|
# # $STD yarn --frozen-lockfiled
|
||||||
# $STD yarn next telemetry disable
|
# # $STD yarn next telemetry disable
|
||||||
# $STD yarn build
|
# # $STD yarn build
|
||||||
|
|
||||||
[ -d "public" ] && cp -r public .next/standalone/
|
# [ -d "public" ] && cp -r public .next/standalone/
|
||||||
[ -d "howto" ] && cp -r howto .next/standalone/
|
# [ -d "howto" ] && cp -r howto .next/standalone/
|
||||||
mkdir -p .next/standalone/.next
|
# mkdir -p .next/standalone/.next
|
||||||
cp -r .next/static .next/standalone/.next/
|
# cp -r .next/static .next/standalone/.next/
|
||||||
|
|
||||||
mv .next/standalone /tmp/jotty_standalone
|
# mv .next/standalone /tmp/jotty_standalone
|
||||||
rm -rf ./* .next .git .gitignore .yarn
|
# rm -rf ./* .next .git .gitignore .yarn
|
||||||
mv /tmp/jotty_standalone/* .
|
# mv /tmp/jotty_standalone/* .
|
||||||
mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true
|
# mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true
|
||||||
rm -rf /tmp/jotty_standalone
|
# rm -rf /tmp/jotty_standalone
|
||||||
|
|
||||||
mkdir -p data/{users,checklists,notes}
|
mkdir -p data/{users,checklists,notes}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user