Created
July 24, 2018 19:55
-
-
Save namila007/751cbd59701107bc28fe8cd07bfeb4d5 to your computer and use it in GitHub Desktop.
Heroku.cmd file option to work on WINDOWS 10 BASH
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
@echo off | |
setlocal enableextensions | |
if not "%HEROKU_REDIRECTED%"=="1" if exist "%LOCALAPPDATA%\heroku\client\bin\heroku.cmd" ( | |
set HEROKU_REDIRECTED=1 | |
"%LOCALAPPDATA%\heroku\client\bin\heroku.cmd" %* | |
goto:EOF | |
) | |
if not defined HEROKU_BINPATH set HEROKU_BINPATH="%~dp0heroku.cmd" | |
if exist "%~dp0..\bin\node.exe" ( | |
"%~dp0..\bin\node.exe" "%~dp0..\bin\run" %* | |
) else if exist "%LOCALAPPDATA%\oclif\node\node-10.6.0.exe" ( | |
"%LOCALAPPDATA%\oclif\node\node-10.6.0.exe" "%~dp0..\bin\run" %* | |
) else ( | |
node "%~dp0..\bin\run" %* | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment