相关疑难解决方法(0)

rails server bin/rails:6:警告:已初始化的常量APP_PATH错误

我尝试了很多东西,比如卸载/重新安装rails和gem,但无济于事.

当我进入我的新项目并运行rails s或捆绑exec rails服务器时,我收到此错误:

bin/rails:6: warning: already initialized constant APP_PATH
/Users/toabui/Sites/cms/bin/rails:6: warning: previous definition of APP_PATH was here Usage: rails COMMAND [ARGS]
Run Code Online (Sandbox Code Playgroud)

在我的bin/rails里面,我看到了这段代码:

#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
APP_PATH = File.expand_path('../../config/application',  __FILE__)
require_relative '../config/boot'
require 'rails/commands'
Run Code Online (Sandbox Code Playgroud)

有没有人知道为什么我在运行rails时遇到错误?

我用谷歌搜索了,看起来像弹簧宝石有一个错误,但我似乎无法让它工作.

ruby-on-rails

75
推荐指数
5
解决办法
5万
查看次数

"使用Capistrano在EC2上部署Rails 3应用程序时,请在Capistrano配方中请求此文件"错误

在部署Rails 3应用程序时,我们遇到以下错误.请帮助解决此问题.

$ cap deploy
    triggering load callbacks
  * 2015-03-17 19:25:22 executing `deploy'
  * 2015-03-17 19:25:22 executing `deploy:update'
 ** transaction: start
  * 2015-03-17 19:25:22 executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote git@github.com:BoTreeConsultingTeam/IntegrityMatters.git master"
    command finished in 3579ms
  * executing "if [ -d /home/ubuntu/integrity_matters/shared/cached-copy ]; then cd /home/ubuntu/integrity_matters/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard eb49600f7de21f4b2b1de8884f70dd5a88837f41 && git clean -q -d -x -f; else git clone …
Run Code Online (Sandbox Code Playgroud)

capistrano ruby-on-rails amazon-ec2 ruby-on-rails-3

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