spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
816 stars 256 forks source link

Assets pre-compile error with Rails 3.2 #43

Closed nazarhussain closed 12 years ago

nazarhussain commented 12 years ago

Hi,

I am using gem version 3.4.8, and having an issue when i use the command rake assets:precompile to compile the assets.

Every time it aborted at

mkdir -p /path_to_app/public/assets
cp -r /home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/bundler/gems/tinymce-rails-f7dd26ee75b5/assets/precompiled/tinymce /path_to_app/public/assets
/path_to_app/config/Gemfile not found
rake aborted!
Command failed with status (10): [/home/nazar2/.rvm/rubies/ruby-1.9.2-p290/b...]
/home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/home/nazar2/.rvm/gems/ruby-1.9.2-p290@3.2/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'

I also tried the latest code by direct github url but still facing the same issue. Can you suggest any solution for it?

nazarhussain commented 12 years ago

I tested it by removing the gem from application, but this error remains the same. Means issue is some where else. I am closing this issue, but if any one can dig it out that what actually the issue is, it will be a great help for me.

spohlenz commented 12 years ago

Try checking your config/boot.rb file (line 2). It seems to be looking for your Gemfile one level too deep.

nazarhussain commented 12 years ago

my boot.rb file is


require 'rubygems'

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

And i am think it is pretty standard. Any further hint to resolve it. My deployment is stopped due to this issue.

spohlenz commented 12 years ago

Looks fine to me. Are you using bundle exec to run the rake task?

nazarhussain commented 12 years ago

Yes i tried it with bundle exec as well. But still the same issue.