小编A A*_*Ali的帖子

无法推送到github,ssh:无法解析主机名

我无法通过这个,已经多次重建存储库,使ssh键完成

--------------
demo_app <username>$ git remote add origin git@github.com:<username>/demo_app.git

fatal: remote origin already exists.

$ git push -u origin master
---
ssh: Could not resolve hostname git: nodename nor servname provided, or not known
---
fatal: Could not read from remote repository.
---
Please make sure you have the correct access rights
---
and the repository exists.
----------
---------

Checked ssh keys

---

$ ssh -T git@github.com

Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.

--- …
Run Code Online (Sandbox Code Playgroud)

git ssh push ruby-on-rails github

15
推荐指数
2
解决办法
3万
查看次数

为什么'bundle install --without production'命令在更新后不需要'--without production'?

为什么不是第二个命令

$ bundle install
Run Code Online (Sandbox Code Playgroud)

不需要

--without production
Run Code Online (Sandbox Code Playgroud)

(因为这是它在教程中的用法,所以我认为它是正确的)不需要它背后发生了什么/推理?

来自http://ruby.railstutorial.org/chapters/a-demo-app#sec-demo_users_resource

$ bundle install --without production
$ bundle update
$ bundle install
Run Code Online (Sandbox Code Playgroud)

ruby bundle rubygems ruby-on-rails

13
推荐指数
1
解决办法
2万
查看次数

标签 统计

ruby-on-rails ×2

bundle ×1

git ×1

github ×1

push ×1

ruby ×1

rubygems ×1

ssh ×1