criollo/develop.sh

11 lines
194 B
Bash
Executable File

#!/usr/bin/env sh
npx medusa db:migrate
# 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