Skip to content

Instantly share code, notes, and snippets.

@pedro-mass
Last active November 18, 2021 14:31
Show Gist options
  • Save pedro-mass/8493fc1d8ef2f4314010d53af12eac0d to your computer and use it in GitHub Desktop.
Save pedro-mass/8493fc1d8ef2f4314010d53af12eac0d to your computer and use it in GitHub Desktop.
Allows you to have a default port set, but also override when calling
{
"scripts": {
"pedro": "PORT=${PORT:-3001} && echo $PORT"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment