Skip to content

Instantly share code, notes, and snippets.

@movstox
Last active October 20, 2019 21:08
Show Gist options
  • Save movstox/aeaad413a1fd676eae0f1560d12ac238 to your computer and use it in GitHub Desktop.
Save movstox/aeaad413a1fd676eae0f1560d12ac238 to your computer and use it in GitHub Desktop.
bash: app name from heroku
export APP_NAME=`heroku info | grep Web | grep -Eo 'https://(.+).herokuapp.com' | awk -F[/:] '{split($4,a,"."); print a[1]}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment