Files
fizzy/bin/dev
T
2025-10-02 16:44:24 -04:00

22 lines
492 B
Bash
Executable File

#!/usr/bin/env sh
echo "Login with david@37signals.com / secret123456 to:"
bin/rails runner - <<EOF
ApplicationRecord.with_each_tenant do |tenant|
next unless tenant =~ /\A\d+\z/
if Account.sole.tenant_id
puts " - #{Account.sole.name}: http://fizzy.localhost:3006/#{Account.sole.tenant_id}"
end
end
EOF
if [ -f tmp/solid-queue.txt ]; then
export SOLID_QUEUE_IN_PUMA=1
fi
if [ -f tmp/oss-config.txt ]; then
export OSS_CONFIG=1
fi
exec ./bin/rails server -p 3006