Is your application server multi-threaded
(such as puma and unicorn) or is it multi-process (such as thin and webrick)?
Running with POW, not sure if it is multithreaded or not.
What are the contents of config/initializers/ember.rb?
EmberCli.configure do |c|
c.app :frontend, yarn: true
end
What are the contents of the Rails' view that renders the Ember application?
n/a - default
How are the EmberCLI-related routes defined?
mount_ember_assets :frontend, to: "frontend"
How is the application deployed?
Still working with it in development. Uses pow.
What is the issue?
I can run rake ember:compile and my assets are created and I can see Ember on my page like I want. But if I change my Ember app and reload the page, nothing is updated. It is still resolving to the original compile.
I can't tell if this is an issue with the fact that (1) the ember app isn't built via the Rails app or (2) that watchman isn't properly watching my files and recompiling behind the scenes.
Build the app within Rails
The rails app never calls build when using just the ember assets. When the app is rendered into the page using render_ember_app (which is expected when doing a full page render), ember-cli-rails will build the ember app to make sure it has the latest version. But there is nothing like that when using mount_ember_assets.
There is a rack app which is mounted but I don't see that rack app ever calling build.
If I call EmberCli["frontend"].build in a before_filter within my application_controller.rb then it updates properly but that is less than ideal since it is only used one a small handful of pages.
Watchman
I saw over here that one build method is supposed to start watching the files. I assume that would be making sure that watchman is running. How can I check to see if that is the issue?
What is the expected workflow for getting assets built when using mount_ember_assets?
Which operating system and version is the project developed on? macOS 10.12.6
Which version of
ruby
is the project developed on? ruby 2.3.1p112Which version of
npm
is the project developed on? 5.5.1Which version of
ember-cli
is the project developed on? 2.17.0What is the
rails
version? Rails 4.2.7.1What is the
ember-cli-rails
version (fromGemfile
)? 0.10.0What is the
ember-cli-rails-addon
version (frompackage.json
)? 0.10.0Is your application server multi-threaded (such as
puma
andunicorn
) or is it multi-process (such as thin and webrick)? Running with POW, not sure if it is multithreaded or not.What are the contents of
config/initializers/ember.rb
?What are the contents of the Rails' view that renders the Ember application? n/a - default
How are the EmberCLI-related routes defined?
How is the application deployed? Still working with it in development. Uses pow.
What is the issue? I can run
rake ember:compile
and my assets are created and I can see Ember on my page like I want. But if I change my Ember app and reload the page, nothing is updated. It is still resolving to the original compile.I can't tell if this is an issue with the fact that (1) the ember app isn't built via the Rails app or (2) that
watchman
isn't properly watching my files and recompiling behind the scenes.Build the app within Rails
The rails app never calls
build
when using just the ember assets. When the app is rendered into the page usingrender_ember_app
(which is expected when doing a full page render), ember-cli-rails will build the ember app to make sure it has the latest version. But there is nothing like that when usingmount_ember_assets
.There is a rack app which is mounted but I don't see that rack app ever calling
build
.If I call
EmberCli["frontend"].build
in abefore_filter
within myapplication_controller.rb
then it updates properly but that is less than ideal since it is only used one a small handful of pages.Watchman
I saw over here that one build method is supposed to start watching the files. I assume that would be making sure that
watchman
is running. How can I check to see if that is the issue?What is the expected workflow for getting assets built when using
mount_ember_assets
?