Last active
October 20, 2019 21:08
-
-
Save movstox/aeaad413a1fd676eae0f1560d12ac238 to your computer and use it in GitHub Desktop.
bash: app name from heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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