Heroku Deployment Error

In Windows environment, I get the following error when trying to install it in Heroku

C: /Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/base.rb: 32: in ': there is no such file or directory - git remote (Errno :: ENOENT) from C: /Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ba se.rb: 32: in shell' from C:/Ruby/lib/ruby/1.8/fileutils.rb:121:in chdir 'from C: /Ruby/lib/ruby/1.8/fileutils .rb: 121: in cd' from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ba se.rb:32:inshell "from C: /Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ap p.rb: 52: in create' from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/command.rb: 48:insend 'from C: / Ruby / lib / ruby ​​/ gems / 1.8 / gems / heroku-1.9.13 / lib / heroku / command.rb: 48: in run_internal' from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/command.rb: 20:inrun 'from C: /Ruby/lib/ruby/gems/1.8/gems/heroku-1.9 .13 / bin / heroku: 13 from C: / Ruby / bin / heroku: 19: to `load 'from C: / Ruby / bin / heroku: 19

Any idea how I can fix this? This is done from the Ruby command line (which seems like a normal command line to me)

+3
source share
2 answers

Ok, so I figured out how this works and why this happens.

For some reason, I can only run Ruby commands from the CMD tooltip, however GIT commands only work with GIT Bash. When in GIT Bash Ruby commands do not work.

When you run Heroku commands to create a service, it seems that you want to run certain GIT commands that do not work from the CMD prompt, as I configured it.

, Heroku GIT , , . , - .

, : http://www.wiki.devchix.com/index.php?title=Working_around_the_%22heroku_create%22_error

+2

Git Bash CMD Windows.. , .

, , Heroku Windows CMD, msysgit/bin Path .

Git.

, :

git remote add heroku git @heroku.com: yourappname.git

Heroku:

git

0

Source: https://habr.com/ru/post/1758116/


All Articles