-
Notifications
You must be signed in to change notification settings - Fork 751
Closed
Description
Help us help you! Please choose one:
- My app crashes with
react-rails, so I've included the stack trace and the exact steps which make it crash. - My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
- I'm trying to use
react-railswith another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working. - I have another issue to discuss.
rake assets:precompile:all fails while deploying to production. I suspect the problem is that I have the following configuration:
config.assets.compile = false
config.assets.prefix = "ui"
Which causes the manifest.yml to be generated under public/ui instead of public/assets, thus failing the initialization of the YamlManifestContainer
On a quick attempt to fix the issue, I tried this but then, assets:precompile fails cause it cannot find react-server.js. Any thoughts?
Stacktrace:
INFO [c27b9bb2] Running bundle exec rake assets:precompile as omitted@omitted
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as omitted@omitted: rake exit status: 1
rake stdout: Nothing written
rake stderr: /usr/bin/ruby2.2 /data/shared/bundle/ruby/2.2.0/bin/rake assets:precompile:all RAILS_ENV=staging RAILS_GROUPS=assets
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /data/release/public/assets/manifest.yml
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/yaml_manifest_container.rb:9:in `initialize'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/sprockets_renderer.rb:67:in `new'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/sprockets_renderer.rb:67:in `asset_container'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/sprockets_renderer.rb:22:in `block in initialize'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/sprockets_renderer.rb:21:in `each'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering/sprockets_renderer.rb:21:in `initialize'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering.rb:22:in `new'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering.rb:22:in `create_renderer'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering.rb:12:in `block in reset_pool'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `block in initialize'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `initialize'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `new'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `initialize'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool.rb:48:in `new'
/data/shared/bundle/ruby/2.2.0/gems/connection_pool-1.2.0/lib/connection_pool.rb:48:in `initialize'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering.rb:12:in `new'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/server_rendering.rb:12:in `reset_pool'
/data/shared/bundle/ruby/2.2.0/gems/react-rails-1.8.2/lib/react/rails/railtie.rb:90:in `block in <class:Railtie>'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/lazy_load_hooks.rb:34:in `call'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/lazy_load_hooks.rb:42:in `each'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/initializable.rb:30:in `instance_exec'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/initializable.rb:30:in `run'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/initializable.rb:55:in `block in run_initializers'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/initializable.rb:54:in `each'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/initializable.rb:54:in `run_initializers'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/application.rb:136:in `initialize!'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/railtie/configurable.rb:30:in `method_missing'
/data/release/config/environment.rb:8:in `<top (required)>'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `block in require'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:in `load_dependency'
/data/shared/bundle/ruby/2.2.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in `require'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/application.rb:103:in `require_environment!'
/data/shared/bundle/ruby/2.2.0/gems/railties-3.2.22/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'
/data/shared/bundle/ruby/2.2.0/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:190:in `block (2 levels) in <top (required)>'
Metadata
Metadata
Assignees
Labels
No labels