File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,10 +54,15 @@ function update_script() {
5454 unset NODE_OPTIONS
5555 msg_ok " Built Application"
5656
57+ msg_info " Setting Up Standalone"
58+ cp -r /opt/lobehub/.next/static /opt/lobehub/.next/standalone/.next/static
59+ cp -r /opt/lobehub/public /opt/lobehub/.next/standalone/public
60+ cp -r /opt/lobehub/scripts/migrateServerDB/* /opt/lobehub/.next/standalone/
61+ cp -r /opt/lobehub/packages/database/migrations /opt/lobehub/.next/standalone/migrations
62+ msg_ok " Set Up Standalone"
63+
5764 msg_info " Running Database Migrations"
5865 cd /opt/lobehub
59- cp scripts/migrateServerDB/docker.cjs .next/standalone/
60- cp scripts/migrateServerDB/errorHint.js .next/standalone/
6166 set -a && source /opt/lobehub/.env && set +a
6267 $STD node /opt/lobehub/.next/standalone/docker.cjs
6368 msg_ok " Ran Database Migrations"
You can’t perform that action at this time.
0 commit comments