xrforge/manyfold/usr/src/app/bin/docker-entrypoint.sh

26 lines
578 B
Bash
Raw Normal View History

2025-11-10 21:25:39 +01:00
#!/bin/sh
set -e
if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
echo "Preparing database..."
bundle exec rails db:prepare:with_data
echo "run boot 'hook'"
2025-11-26 11:39:04 +01:00
/manyfold/cli/manyfold.sh hook boot || true
2025-11-10 21:25:39 +01:00
echo "Setting database file ownership (SQLite3 only)..."
bundle exec rake db:chown
echo "Cleaning up old cache files..."
bundle exec rake tmp:cache:clear
echo "Setting temporary directory permissions..."
chown -R $PUID:$PGID tmp log
echo "Launching application..."
export RAILS_PORT=$PORT
export RAILS_LOG_TO_STDOUT=true
exec s6-setuidgid $PUID:$PGID "$@"