criollo/develop.sh
2024-10-15 21:51:37 +05:30

11 lines
198 B
Bash
Executable File

#!/usr/bin/env sh
npx medusa migrations run
# Check if PORT is set and not empty, then add it to the command
if [ -n "$PORT" ]; then
npx medusa "$@" --port "$PORT"
else
npx medusa "$@"
fi