I have a directory structure such as:
my-app/
.git/
db/ <-- Database stuff
lib/ <-- Business logic
spec/
web/ <-- Rails
Rails is located in a subdirectory of the web/repository. Heroku doesn't like this by default.
I have a partially working buildkack heroku . Basically, it calls Dir.chdirfor a change in the environment variable APP_SUBDIR(if it exists) before starting any tasks.
I would like to install in Heroku, but I cannot get the asset pipeline task to work. When the time comes to precompile the assets, the custom buildpack changes to the directory web/and tries to start the task.
However, I get this error with the following important bit:
Could not detect rake tasks
ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
and using the production group of your Gemfile.
Your Ruby version is 1.9.2, but your Gemfile specified 2.0.0 (Bundler::RubyVersionMismatch)
, Heroku , 2.0 . , :
$ heroku run 'cd web; bundle exec rake -P'
.
TL; DR (Summary)
Heroku , 1.9.2, 2.0.0 . ?