mirror of
https://github.com/luxfi/explorer-v1.git
synced 2026-10-30 19:34:59 +00:00
13 lines
311 B
Bash
Executable File
13 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Starting Blockscout..."
|
|
|
|
# Check if database exists
|
|
if [ -z "$DISABLE_DATABASE_MIGRATIONS" ]; then
|
|
echo "Running database migrations..."
|
|
./bin/blockscout eval "Elixir.Explorer.ReleaseTasks.create_and_migrate()"
|
|
fi
|
|
|
|
echo "Starting Blockscout server..."
|
|
exec ./bin/blockscout start |