rails初心者がgemfileをいじってbundle updateやbundle installを繰り返すうちに自分では解決できない問題が起きましたのでご教授いただきたいです。
ruby 2.0.0 -p353
rails 4.2.1です
rails s と打つと以下のエラーが出てきます。。
bin/rails:6: warning: already initialized constant APP_PATH
/Users/********/sample/sample_app/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:
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.
上記のエラーコマンドを頼りに検索をして復旧を試みたのですがうまくいきません。
思い当たる節があるのですが、rails4.2.1のバージョンのアプリケーションをherokuでデプロイしようと検索しながらコマンドをいろいろうってしまったのでこの辺りで生じたかなと思います。=>結局デプロイできず諦めました
gemfileのsqlite3をいじったり、gem 'pg'を追加したりしたことが原因な気がします。
485 gem install pg -v '0.17.1'
486 bundle install
487 gem install pg
488 brew install postgresql
489 brew install postgresql
490 sudo brew install postgresql
491 bundle update
492 bundle install
493 heroku create
494 heroku open
495 git push heroku master
496 gem install sqlite3 -v '1.3.10'
497 bundle install
498 gem install pg -v '0.18.1'
この辺りでやらかしてる気がします。
お手数おかけしますがよろしくお願いいたします!
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/10/02 01:38