简体   繁体   English

奥丁计划// Git推送heroku大师

[英]The Odin Project // Git push heroku master

I am a total newbie in all of this, so forgive my ignorance. 在这所有方面,我都是新手,请原谅我的无知。

Recently bumped into The Odin Project & wanted to learn how to code. 最近碰到了Odin项目,想学习编码。 Got busy with downloading all the necessary programs [Installfest] , when this occurred: 发生这种情况时,请忙于下载所有必需的程序[Installfest]:

http://installfest.railsbridge.org/installfest/deploy_a_rails_app http://installfest.railsbridge.org/installfest/deploy_a_rails_app

On Step 2.5 : Deploy (push) to heroku, they ask me to do the following: 步骤2.5 :部署(推送)到heroku上,他们要求我执行以下操作:


Type this in terminal --> git push heroku master 在终端中键入此-> git push heroku master

Expected result: 预期结果:

The authenticity of host 'heroku.com (75.101.145.87)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,75.101.145.87' (RSA) to the list of known hosts.
Counting objects: 60, done.
Compressing objects: 100% (54/54), done.
Writing objects: 100% (60/60), 79.03 KiB, done.
Total 60 (delta 10), reused 0 (delta 0)

-----> Heroku receiving push
-----> Rails app detected
   Compiled slug size is 080K
-----> Launching...... done
   App deployed to Heroku

To git@heroku.com:floating-winter-18.git
  * [new branch]      master -> master

When running this command in the command prompt With Ruby & Rails, I get the following message/issue/error: 在命令提示符下使用Ruby&Rails运行此命令时,出现以下消息/问题/错误:

Actual result: 实际结果:

Username for ' https://git.heroku.com ': https://git.heroku.com ”的用户名:


This is totally not what should be showing up, and I don't really know anything about how to solve this problem. 这完全不是应该显示的内容,而且我对如何解决此问题一无所知。 Does any of you guys know how I can solve this so I can continue installing the programs necessary to start coding? 你们中有人知道我该如何解决这个问题,以便我继续安装开始编码所需的程序吗?

You need to have a heroku account to push it to heroku. 您需要有一个heroku帐户才能将其推送到heroku。 If you don't have one you can one here 如果您没有一个,可以在这里一个

Once you have a heroku account. 一旦您拥有一个heroku帐户。 All you need to do is to type this in terminal: 您需要做的就是在终端中输入以下内容:

heroku login

Enter your Heroku credentials and you shall be able to push code to your website. 输入您的Heroku凭据,您将可以将代码推送到您的网站。

Firstly, you're going to need to ensure you have your Heroku Toolbelt installed. 首先,您需要确保已安装Heroku Toolbelt。 If you haven't installed it, you can check it out here: https://toolbelt.heroku.com/ . 如果尚未安装,则可以在这里检出: https : //toolbelt.heroku.com/

Secondly, visit https://www.heroku.com/ and sign up for an account. 其次,访问https://www.heroku.com/并注册一个帐户。

Once you've successfully registered, you can run heroku login from your terminal and enter the credentials you just used for your account creation. 成功注册后,您可以从终端运行heroku login ,然后输入刚用于创建帐户的凭据。

Lastly, re-run your git push heroku master command and enjoy your successful push! 最后,重新运行您的git push heroku master命令,并享受成功的推送!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM