Skip to content

Instantly share code, notes, and snippets.

@danielnolan
Created June 30, 2023 12:47
Show Gist options
  • Save danielnolan/fe73b69e78f15a074e61a07a7ebeae80 to your computer and use it in GitHub Desktop.
Save danielnolan/fe73b69e78f15a074e61a07a7ebeae80 to your computer and use it in GitHub Desktop.

Revisions

  1. danielnolan created this gist Jun 30, 2023.
    15 changes: 15 additions & 0 deletions bin-dev
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/usr/bin/env bash

    if command -v overmind &> /dev/null
    then
    overmind start -f Procfile.dev "$@"
    exit $?
    fi

    if ! foreman version &> /dev/null
    then
    echo "Installing foreman..."
    gem install foreman
    fi

    foreman start -f Procfile.dev "$@"