Skip to content

Instantly share code, notes, and snippets.

@namila007
Created July 24, 2018 19:55
Show Gist options
  • Save namila007/751cbd59701107bc28fe8cd07bfeb4d5 to your computer and use it in GitHub Desktop.
Save namila007/751cbd59701107bc28fe8cd07bfeb4d5 to your computer and use it in GitHub Desktop.
Heroku.cmd file option to work on WINDOWS 10 BASH
@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