windows環境でherokuを使ってみる
そろそろherokuを使ってみようと思いherokuに登録したのだが、
pushのところで詰まってしまったのでメモ。
windows環境でrails開発するやつなんかいねーよということなんでしょうかherokuさん。
$ git push heroku master
Counting objects: 81, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (65/65), done.
Writing objects: 100% (81/81), 28.33 KiB, done.
Total 81 (delta 2), reused 0 (delta 0)
Installing rails3_serve_static_assets... done
-
-
-
-
- > Configure Rails 3 to disable x-sendfile
-
-
-
Installing rails3_disable_x_sendfile... done
-
-
-
-
- > Configure Rails to log to stdout
-
-
-
Installing rails_log_stdout... done
-
-
-
-
- > Gemfile detected, running Bundler version 1.0.7
-
-
-
Unresolved dependencies detected; Installing...
Using --without development:test
Windows Gemfile.lock detected, ignoring it.
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
You have added to the Gemfile:
* source: rubygems repository https://rubygems.org/
* rails (= 3.2.2)
* sqlite3
* sass-rails (~> 3.2.3)
* coffee-rails (~> 3.2.1)
* uglifier (>= 1.0.3)
* jquery-rails
FAILED: http://devcenter.heroku.com/articles/bundler
! Heroku push rejected, failed to install gems via Bundler
To git@heroku.com:hogehoge.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@hogehoge.git'
というようなエラーが出た。
でググると以下のサイトにヒットした。
ruby on rails - Gemfile.lock not checked in - Heroku - Stack Overflow
でここに書いてあるとおりGemfile.lockから
を取り除いて
git add .
git commit -am "hogehogehoge"
git push heroku master
でうまくいった。
いい加減にwindows以外で開発環境整えなきゃなー。