fix(storyteller): copy migrations, sqlite and .env to standalone dir
- cp migrations/ and sqlite/ (dlopen needs real files, not symlinks) - symlink .env into standalone working directory - Fixes standalone mode missing database and config files
This commit is contained in:
@@ -60,6 +60,9 @@ cp -r /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/we
|
||||
if [[ -d /opt/storyteller/web/public ]]; then
|
||||
cp -r /opt/storyteller/web/public /opt/storyteller/web/.next/standalone/web/public
|
||||
fi
|
||||
cp -r /opt/storyteller/web/migrations /opt/storyteller/web/.next/standalone/web/migrations
|
||||
cp -r /opt/storyteller/web/sqlite /opt/storyteller/web/.next/standalone/web/sqlite
|
||||
ln -sf /opt/storyteller/.env /opt/storyteller/web/.next/standalone/web/.env
|
||||
msg_ok "Built Storyteller"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user