mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2024-11-22 07:41:00 +00:00
Run migration script
This commit is contained in:
parent
d6502a43cb
commit
00d7980af2
1 changed files with 3 additions and 0 deletions
3
start.sh
3
start.sh
|
@ -60,6 +60,9 @@ if grep -q "^SECRET_KEY_BASE=$" /app/data/env.production; then
|
|||
PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} \
|
||||
-c "INSERT INTO settings (var, value) VALUES ('registrations_mode', 'none')"
|
||||
fi
|
||||
else
|
||||
echo "==> Migrating database"
|
||||
HOME=/app/data SAFETY_ASSURED=1 bundle exec rails db:migrate
|
||||
fi
|
||||
|
||||
chown -R cloudron:cloudron /app/data /tmp/mastodon /run/mastodon
|
||||
|
|
Loading…
Reference in a new issue