Skip to content

Instantly share code, notes, and snippets.

@movstox
Last active October 20, 2019 21:08
Show Gist options
  • Select an option

  • Save movstox/aeaad413a1fd676eae0f1560d12ac238 to your computer and use it in GitHub Desktop.

Select an option

Save movstox/aeaad413a1fd676eae0f1560d12ac238 to your computer and use it in GitHub Desktop.

Revisions

  1. movstox revised this gist Oct 20, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion app_name_from_heroku.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    heroku info | grep Web | grep -Eo 'https://(.+).herokuapp.com' | awk -F[/:] '{split($4,a,"."); print a[1]}'
    export APP_NAME=`heroku info | grep Web | grep -Eo 'https://(.+).herokuapp.com' | awk -F[/:] '{split($4,a,"."); print a[1]}'`
  2. movstox created this gist Oct 20, 2019.
    1 change: 1 addition & 0 deletions app_name_from_heroku.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    heroku info | grep Web | grep -Eo 'https://(.+).herokuapp.com' | awk -F[/:] '{split($4,a,"."); print a[1]}'