我在Ubuntu 10.04中安裝了Rails。並且有一些應用程序正在運行。但在將Ubuntu更新到14.04後,rails應用程序無法正常工作。將Ubuntu從10.04更新到14.04後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時,它詢問我是否要刪除一些過時的軟件包。並選擇是的,這很重要嗎? – rAzOr 2014-09-20 15:38:49