Open EduMaca opened 8 years ago
This gem doesn't work on windows, as far as I know.
I tried to build a patch to get this gem to work on windows but I was never completely successful. Here is what I found and perhaps @seanpdoyle will be able help.
ember-cli-rails/lib/ember_cli/path_set.rb
def ember
@ember ||= begin
root.join("node_modules", "ember-cli", "bin", "ember").tap do |path|
unless path.executable?
fail DependencyError.new <<-MSG.strip_heredoc
No `ember-cli` executable found for `#{app_name}`.
Install it:
$ cd #{root}
$ #{package_manager} install
MSG
end
end
end
end
unless path.executable? always fails on windows
The run and run! methods in ember-cli-rails/lib/ember_cli/runner.rb must be modified to handle executing the node script using the node interpreter.
Ultimately I was only able to build through rails ember:compile but each individual request to the application would timeout. At that point I gave up.
Well that's a bummer.
I got it to work, It's a hack and there should be a much better solution, hopefully provided in the future. ember-cli-rails w/ temporary windows work-around
Which operating system and version is the project developed on? Windows 8 Which version of [
ruby
][ruby] is the project developed on? 2.2.4p230 Which version of [npm
][npm] is the project developed on? 3.10.8 Which version of [ember-cli
][ember-cli] is the project developed on? 2.8.0 What is the [rails
][rails] version? 5.0.0.1 What is the [ember-cli-rails
][gem] version (fromGemfile
)? (0.8.1) What is the [ember-cli-rails-addon
][addon] version (frompackage.json
)? "0.8.0 Is your application server [multi-threaded][](such aspuma
andunicorn
) or is it multi-process (such as thin and webrick)? The application server is puma What are the contents ofconfig/initializers/ember.rb
? EmberCli.configure do |c| c.app :frontend endThe project on linux was running perfectly, so i deleted the node_packages and bower_components folders for my backup on cloud. When i downloaded the project, i run npm install and bower install but the error is showing up.
I already saw the folder ember-cli and .bin of node_modules, the files are in there.