【发布时间】:2014-11-15 00:31:39
【问题描述】:
我在 Ubuntu 10.04 中安装了 Rails。并启动并运行了一些应用程序。但是在将 Ubuntu 更新到 14.04 后,rails 应用程序无法运行。
当我尝试启动我的 Rails 应用程序(作为 $rails 服务器)时,收到以下警告和帮助:
bin/rails:6: warning: already initialized constant APP_PATH
/home/razor/rails_projs/simple_cms/bin/rails:6: warning: previous definition of APP_PATH was here
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate" (short-cut alias: "d")
plugin new Generates skeleton for developing a Rails plugin
runner Run a piece of code in the application environment (short-cut alias: "r")
All commands can be run with -h (or --help) for more information.
【问题讨论】:
-
在将 ubuntu 更新到 14.04 时,它询问我是否要删除一些过时的软件包。并选择是,这有关系吗?
标签: ruby-on-rails-4 updates ubuntu-14.04