小编lev*_*one的帖子

bundle install返回"找不到Gemfile"

我是Rails的新手,目前正在通过指南.该指南指出:

使用文本编辑器使用清单2.1的内容更新Bundler所需的Gemfile.

source 'https://rubygems.org'

gem 'rails', '3.2.3'

group :development do
  gem 'sqlite3', '1.3.5'
end


# Gems used only for assets and not required
# in production environments by default.

group :assets do
  gem 'sass-rails',   '3.2.4'
  gem 'coffee-rails', '3.2.2'
  gem 'uglifier', '1.2.3'
end

gem 'jquery-rails', '2.0.0'

group :production do
  gem 'pg', '0.12.2'
end
Run Code Online (Sandbox Code Playgroud)

然后,我们使用以下bundle install 命令安装并包含gem :

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

如果Bundler抱怨no such file to load -- readline (LoadError)尝试添加gem ’rb-readline’到您的Gemfile.)

我按照步骤甚至添加gem 'rb-readline'到了Gemfile …

install bundle ruby-on-rails gemfile

92
推荐指数
6
解决办法
20万
查看次数

git push >>致命:没有配置推送目的地

我还在浏览一些关于RoR的指南,我在这里部署演示应用程序

我按照说明:

完成Microposts资源后,现在是将存储库推送到GitHub的好时机:

$ git add .
$ git commit -a -m "Done with the demo app"
$ git push
Run Code Online (Sandbox Code Playgroud)

这里发生的错误是推动部分......它输出了这个:

$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
git push <name>
Run Code Online (Sandbox Code Playgroud)

所以我尝试按照说明执行此命令:

$ git remote add demo_app 'www.github.com/levelone/demo_app'
fatal: remote demo_app already exists.
Run Code Online (Sandbox Code Playgroud)

所以我推:

$ git push demo_app
fatal: 'www.github.com/levelone/demo_app' does not appear to be a git repository
fatal: The …
Run Code Online (Sandbox Code Playgroud)

git push ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2

24
推荐指数
3
解决办法
4万
查看次数