无论“heroku run ...”是什么,我总是会收到以下错误:
/usr/bin/env: ruby1.9.1: 没有这样的文件或目录
如下:
user@box:~/path$ heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.7070
/usr/bin/env: ruby1.9.1: No such file or directory
这是版本:
user@box:~/path$ heroku run ruby -v
Running `ruby -v` attached to terminal... up, run.8039
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
这是我的 Gemfile
source 'https://rubygems.org'
gem 'rails', '4.0.0'
ruby "1.9.3"
gem 'rails_12factor'
gem 'pg'
group :production do
gem 'therubyracer-heroku', '0.8.1.pre3'
end
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end