Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Ruby 2.0.0 #11

Closed
acds opened this issue Jul 23, 2013 · 8 comments
Closed

Support for Ruby 2.0.0 #11

acds opened this issue Jul 23, 2013 · 8 comments

Comments

@acds
Copy link

acds commented Jul 23, 2013

What would it take to be able to support ruby 2.0.0 since 1.7.4 JRuby 1.7.4 already includes experimental Ruby 2.0 support. We need to be able to test this stuff out right ?

JRUBY_OPTS=--2.0

I'm not sure how to fork and configure this in combination with other options ?

@matthewbennink
Copy link

Ouch, that hurt. I've just updated my Gemfile to 1.7.4 which solves the issue, but definitely wasn't expecting my Ruby to change out from underneath. Is there a best practice to avoiding this? Perhaps I should be specifying something like 1.7 for the engine version, or maybe not specifying it at all?

My Gemfile had ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.3'.

2013-07-23T09:54:47.417558+00:00 app[web.1]: Bundler::RubyVersionMismatch: Your jruby version is 1.7.4, but your Gemfile specified jruby 1.7.3
2013-07-23T09:54:47.417558+00:00 app[web.1]:           (root) at /app/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
2013-07-23T09:54:47.417558+00:00 app[web.1]:   validate_ruby! at /app/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/definition.rb:361
2013-07-23T09:54:47.417558+00:00 app[web.1]:           (root) at /app/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/setup.rb:17
2013-07-23T09:54:47.417558+00:00 app[web.1]:          require at org/jruby/RubyKernel.java:1054
2013-07-23T09:54:47.417558+00:00 app[web.1]:            setup at /app/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler.rb:116
2013-07-23T09:54:47.417558+00:00 app[web.1]:           (root) at bin/trinidad:14
2013-07-23T09:54:49.230210+00:00 heroku[web.1]: State changed from starting to crashed
2013-07-23T09:54:49.383404+00:00 heroku[web.1]: Process exited with status 1

Update 1:

I also see this in the deploy log -- Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3.

Update 2: I resolved this by setting a specific revision of the buildpack --

heroku config:set BUILDPACK_URL='https://github.com/jruby/heroku-buildpack-jruby.git#9f7dc911d40d4baf21dde2afb6c210ae5cb66149'

@carlhoerberg
Copy link
Member

Swap to Heroku's ruby buildpack
On Jul 23, 2013 12:15 PM, "matthewbennink" notifications@github.com wrote:

I also see this in the deploy log -- Your Ruby version is 2.0.0, but your
Gemfile specified 1.9.3.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-21404878
.

@carlhoerberg
Copy link
Member

fixed in a new push, uses 1.7.4, but not 2.0 mode

@carlhoerberg
Copy link
Member

will be fixed with issue #12

@acds
Copy link
Author

acds commented Jul 23, 2013

Thanks for trying to fix this issue, and realize it has impacts on other uses hence the revert and new issue #12

I took your commit, forked the repository and applied the same changes from you repository (341891f) on on my fork acds@c7a4b63.

All seem to be OK I then ran into the following issues:

cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied

When reverting to your build pack I get the same errors.

I also get this if I try and do anything on Heroku

$ heroku run rake -T
Running `rake -T` attached to terminal... up, run.4449
stty: stdin isn't a terminal

Also looking at the code my project does not use postgress (in favor of mongoid) as mentioned in the compile precompile_assets function. Not sure is this is a side effect ?

Finally for those that want to lock their Heroku build pack to a specific commit can do this

$ heroku config:set BUILDPACK_URL="https://github.com/some/buildpack.git#0123cdef"

Any help or thoughts greatly appreciated !

@acds
Copy link
Author

acds commented Jul 23, 2013

Seem the problem is after the "first" git heroku push master

OK issues is not directly with assets precompile but with the temp storage used for gems git repositories when defined as such in the gemfile.

What I pick up is that its referring to 1.9 not 2.0 compatibility or the JRuby 1.7.9 !

I create a new Heroku app and all (mostly) worked as expected

I set up your build pack locked at he commit before you reverted.

$ heroku config:set BUILDPACK_URL="https://github.com/jruby/heroku-buildpack-jruby.git#341891f"
Setting config vars and restarting acds-new... done, v3
BUILDPACK_URL: https://github.com/jruby/heroku-buildpack-jruby.git#341891f

and push the code:

$ git push heroku master
Counting objects: 450, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (403/403), done.
Writing objects: 100% (450/450), 94.98 KiB | 0 bytes/s, done.
Total 450 (delta 176), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> JRuby app detected
-----> Downloading and unpacking JRuby
-----> Installing JRuby-OpenSSL, Bundler and Rake
       Successfully installed bouncy-castle-java-1.5.0147
       Successfully installed jruby-openssl-0.8.8
       Successfully installed bundler-1.3.5
       Successfully installed rake-10.1.0
       4 gems installed
-----> Vendoring JRuby into slug
-----> Installing dependencies with Bundler
       Fetching gem metadata from https://rubygems.org/.........
       Fetching gem metadata from https://rubygems.org/..
       Fetching git://github.com/dmendel/bindata.git
       Fetching git://github.com/postmodern/digest-crc.git
       Installing rake (10.1.0) 
       Installing i18n (0.6.4) 
       Installing multi_json (1.7.7) 
       Installing activesupport (3.2.11) 
       Installing builder (3.0.4) 
       Installing activemodel (3.2.11) 
       Installing erubis (2.7.0) 
       Installing journey (1.0.4) 
       Installing rack (1.4.5) 
       Installing rack-cache (1.2) 
       Installing rack-test (0.6.2) 
       Installing hike (1.2.3) 
       Installing tilt (1.4.1) 
       Installing sprockets (2.2.2) 
       Installing actionpack (3.2.11) 
       Installing mime-types (1.23) 
       Installing polyglot (0.3.3) 
       Installing treetop (1.4.14) 
       Installing mail (2.4.4) 
       Installing actionmailer (3.2.11) 
       Installing arel (3.0.2) 
       Installing tzinfo (0.3.37) 
       Installing activerecord (3.2.11) 
       Installing activeresource (3.2.11) 
       Installing bcrypt-ruby (3.1.1) 
       Using bindata (1.5.0) from git://github.com/dmendel/bindata.git (at master) 
       Installing sass (3.2.9) 
       Installing bootstrap-sass (2.3.2.1) 
       Installing bouncy-castle-java (1.5.0147) 
       Using bundler (1.3.5) 
       Installing bundle (0.0.1) 
       Installing cancan (1.6.10) 
       Installing timers (1.1.0) 
       Installing celluloid (0.14.1) 
       Installing coffee-script-source (1.6.3) 
       Installing execjs (1.4.0) 
       Installing coffee-script (2.2.0) 
       Installing rack-ssl (1.3.3) 
       Installing json (1.8.0) 
       Installing rdoc (3.12.2) 
       Installing thor (0.18.1) 
       Installing railties (3.2.11) 
       Installing coffee-rails (3.2.2) 
       Installing connection_pool (1.1.0) 
       Installing fastercsv (1.5.5) 
       Installing dbf (2.0.6) 
       Installing orm_adapter (0.4.0) 
       Installing warden (1.2.3) 
       Installing devise (3.0.0) 
       Using digest-crc (0.4.0) from git://github.com/postmodern/digest-crc.git (at master) 
       Installing rails (3.2.11) 
       Installing figaro (0.7.0) 
       Installing jquery-rails (3.0.4) 
       Installing jruby-openssl (0.8.8) 
       Installing mini_portile (0.5.1) 
       Installing moped (1.5.0) 
       Installing origin (1.1.0) 
       Installing mongoid (3.1.4) 
       Installing nokogiri (1.6.0) 
       Installing puma (2.4.0) 
       Installing rack-protection (1.5.0) 
       Installing redis (3.0.4) 
       Installing redis-namespace (1.3.0) 
       Installing rgeo (0.3.20) 
       Installing rgeo-geojson (0.2.3) 
       Installing rgeo-shapefile (0.2.3) 
       Installing rolify (3.2.0) 
       Installing sass-rails (3.2.6) 
       Installing sax-machine (0.1.0) 
       Installing sidekiq (2.13.0) 
       Installing simple_form (2.1.0) 
       Installing sinatra (1.4.3) 
       Installing temple (0.6.5) 
       Installing slim (2.0.0) 
       Installing therubyrhino_jar (1.7.4) 
       Installing therubyrhino (2.0.2) 
       Installing uglifier (2.1.2) 
       Your bundle is complete!
       Gems in the groups development and test were not installed.
       It was installed into ./vendor/bundle
       Post-install message from rdoc:
       Depending on your version of ruby, you may need to install ruby rdoc/ri data:

       <= 1.8.6 : unsupported
        = 1.8.7 : gem install rdoc-data; rdoc-data --install
        = 1.9.1 : gem install rdoc-data; rdoc-data --install
       >= 1.9.2 : nothing to do! Yay!
       Dependencies installed
-----> Writing config/database.yml to read from DATABASE_URL
-----> Precompiling assets
       /tmp/build_11sl9aepeaw9q/jruby/bin/jruby bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
       Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
         validate_ruby! at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/definition.rb:361
                  setup at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler.rb:116
                 (root) at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/setup.rb:17
                require at org/jruby/RubyKernel.java:1054
                 (root) at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
       rake aborted!
       Command failed with status (1): [/tmp/build_11sl9aepeaw9q/jruby/bin/jruby b...]
       org/jruby/RubyProc.java:255:in `call'
       /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:12:in `ruby_rake_task'
       /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
       /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:29:in `(root)'
       org/jruby/RubyProc.java:255:in `call'
       org/jruby/RubyArray.java:1617:in `each'
       org/jruby/RubyArray.java:1617:in `each'
       org/jruby/RubyKernel.java:1073:in `load'
       Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)
       Shutdown completed cleanly
-----> Discovering process types
       Procfile declares types -> web

-----> Compiled slug size: 44.8MB
-----> Launching... done, v5
       http://acds-new.herokuapp.com deployed to Heroku

To git@heroku.com:acds-new.git
 * [new branch]      master -> master

Seems there is some issues with rdoc-data and then with precompiling assets.

I manually compile the assets locally.

$ RAILS_ENV=production bundle exec rake assets:precompile

commit them to git and re push and get the same issue.

       Dependencies installed
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied
cp: cannot create regular file `/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied

I create a new app on Heroku again and all is good.

here is the heroku app config

$ heroku config
=== acds-new Config Vars
BUILDPACK_URL: https://github.com/jruby/heroku-buildpack-jruby.git#341891f
JRUBY_OPTS:    --2.0 -J-Xmx400m
PATH:          bin:jruby/bin:/usr/bin:/bin
RACK_ENV:      production
RAILS_ENV:     production

I'm now completely lost...

@carlhoerberg
Copy link
Member

You had "ruby '2.0.0'" in your Gemfile. In your first repo/app you didn't have the "JRUBY_OPTS=--2.0" thing, but in the second you did, therefore you didn't you get "Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0" there.

Yes, this will be fixed with #12

On Tuesday 23 July 2013 at 23:34, acds wrote:

Seem the problem is after the "first" git heroku push master
OK issues is not directly with assets precompile but with the temp storage used for gems git repositories when defined as such in the gemfile.
What I pick up is that its referring to 1.9 not 2.0 compatibility or the JRuby 1.7.9 !
I create a new Heroku app and all (mostly) worked as expected
I set up your build pack locked at he commit before you reverted.
$ heroku config:set BUILDPACK_URL="https://github.com/jruby/heroku-buildpack-jruby.git#341891f" Setting config vars and restarting acds-new... done, v3 BUILDPACK_URL: https://github.com/jruby/heroku-buildpack-jruby.git#341891f
and push the code:
$ git push heroku master Counting objects: 450, done. Delta compression using up to 4 threads. Compressing objects: 100% (403/403), done. Writing objects: 100% (450/450), 94.98 KiB | 0 bytes/s, done. Total 450 (delta 176), reused 0 (delta 0) -----> Fetching custom git buildpack... done -----> JRuby app detected -----> Downloading and unpacking JRuby -----> Installing JRuby-OpenSSL, Bundler and Rake Successfully installed bouncy-castle-java-1.5.0147 Successfully installed jruby-openssl-0.8.8 Successfully installed bundler-1.3.5 Successfully installed rake-10.1.0 4 gems installed -----> Vendoring JRuby into slug -----> Installing dependencies with Bundler Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/.. Fetching git://github.com/dmendel/bindata.git Fetching git://github.com/postmodern/digest-crc.git Installing rake (10.1.0) Installing i18n (0.6.4) Installing multi_json (1.7.7) Installing activesupport (3.2.11) Installing builder (3.0.4) Installing activemodel (3.2.11) Installing erubis (2.7.0) Installing journey (1.0.4) Installing rack (1.4.5) Installing rack-cache (1.2) Installing rack-test (0.6.2) Installing hike (1.2.3) Installing tilt (1.4.1) Installing sprockets (2.2.2) Installing actionpack (3.2.11) Installing mime-types (1.23) Installing polyglot (0.3.3) Installing treetop (1.4.14) Installing mail (2.4.4) Installing actionmailer (3.2.11) Installing arel (3.0.2) Installing tzinfo (0.3.37) Installing activerecord (3.2.11) Installing activeresource (3.2.11) Installing bcrypt-ruby (3.1.1) Using bindata (1.5.0) from git://github.com/dmendel/bindata.git (at master) Installing sass (3.2.9) Installing bootstrap-sass (2.3.2.1) Installing bouncy-castle-java (1.5.0147) Using bundler (1.3.5) Installing bundle (0.0.1) Installing cancan (1.6.10) Installing timers (1.1.0) Installing celluloid (0.14.1) Installing coffee-script-source (1.6.3) Installing execjs (1.4.0) Installing coffee-script (2.2.0) Installing rack-ssl (1.3.3) Installing json (1.8.0) Installing rdoc (3.12.2) Installing thor (0.18.1) Installing railties (3.2.11) Installing coffee-rails (3.2.2) Installing connection_pool (1.1.0) Installing fastercsv (1.5.5) Installing dbf (2.0.6) Installing orm_adapter (0.4.0) Installing warden (1.2.3) Installing devise (3.0.0) Using digest-crc (0.4.0) from git://github.com/postmodern/digest-crc.git (at master) Installing rails (3.2.11) Installing figaro (0.7.0) Installing jquery-rails (3.0.4) Installing jruby-openssl (0.8.8) Installing mini_portile (0.5.1) Installing moped (1.5.0) Installing origin (1.1.0) Installing mongoid (3.1.4) Installing nokogiri (1.6.0) Installing puma (2.4.0) Installing rack-protection (1.5.0) Installing redis (3.0.4) Installing redis-namespace (1.3.0) Installing rgeo (0.3.20) Installing rgeo-geojson (0.2.3) Installing rgeo-shapefile (0.2.3) Installing rolify (3.2.0) Installing sass-rails (3.2.6) Installing sax-machine (0.1.0) Installing sidekiq (2.13.0) Installing simple_form (2.1.0) Installing sinatra (1.4.3) Installing temple (0.6.5) Installing slim (2.0.0) Installing therubyrhino_jar (1.7.4) Installing therubyrhino (2.0.2) Installing uglifier (2.1.2) Your bundle is complete! Gems in the groups development and test were not installed. It was installed into ./vendor/bundle Post-install message from rdoc: Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! Dependencies installed -----> Writing config/database.yml to read from DATABASE_URL -----> Precompiling assets /tmp/build_11sl9aepeaw9q/jruby/bin/jruby bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 validate_ruby! at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/definition.rb:361 setup at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler.rb:116 (root) at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/gems/shared/gems/bundler-1.3.5/lib/bundler/setup.rb:17 require at org/jruby/RubyKernel.java:1054 (root) at /tmp/build_11sl9aepeaw9q/jruby/lib/ruby/shared/rubygems/custom_require.rb:1 rake aborted! Command failed with status (1): [/tmp/build_11sl9aepeaw9q/jruby/bin/jruby b...] org/jruby/RubyProc.java:255:in call' /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:12:inruby_rake_task' /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:21:in invoke_or_reboot_rake_task' /tmp/build_11sl9aepeaw9q/vendor/bundle/jruby/1.9/gems/actionpack-3.2.11/lib/sprockets/assets.rake:29:in(root)' org/jruby/RubyProc.java:255:in call' org/jruby/RubyArray.java:1617:ineach' org/jruby/RubyArray.java:1617:in each' org/jruby/RubyKernel.java:1073:inload' Tasks: TOP => assets:precompile (See full trace by running task with --trace) Shutdown completed cleanly -----> Discovering process types Procfile declares types -> web -----> Compiled slug size: 44.8MB -----> Launching... done, v5 http://acds-new.herokuapp.com deployed to Heroku To git@heroku.com (mailto:git@heroku.com):acds-new.git * [new branch] master -> master
Seems there is some issues with rdoc-data and then with precompiling assets.
I manually compile the assets locally.
$ RAILS_ENV=production bundle exec rake assets:precompile
commit them to git and re push and get the same issue.
Dependencies installed cp: cannot create regular file /app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied cp: cannot create regular file/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/digest-crc-233023636156/.git/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied cp: cannot create regular file /app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied cp: cannot create regular file/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/bundler/gems/bindata-d684211fa16e/.git/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied cp: cannot create regular file /app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.pack': Permission denied cp: cannot create regular file/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/digest-crc-583e35455737c5c52ea928b5770706736b723d70/objects/pack/pack-6eb35d08c051aaf4cdc8c6babd9bd7578c6a51ef.idx': Permission denied cp: cannot create regular file /app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.idx': Permission denied cp: cannot create regular file/app/tmp/repo.git/.cache/vendor/bundle/jruby/1.9/cache/bundler/git/bindata-49702bd7dfcde9357c8a89c93bd1e303b6e01673/objects/pack/pack-9b541677828c3bb730c737eb907ea09a59b94c6e.pack': Permission denied
I create a new app on Heroku again and all is good.
here is the heroku app config
$ heroku config === acds-new Config Vars BUILDPACK_URL: https://github.com/jruby/heroku-buildpack-jruby.git#341891f JRUBY_OPTS: --2.0 -J-Xmx400m PATH: bin:jruby/bin:/usr/bin:/bin RACK_ENV: production RAILS_ENV: production
I'm now completely lost...


Reply to this email directly or view it on GitHub (#11 (comment)).

@carlhoerberg
Copy link
Member

This is now fixed, see #12 and the updated readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants