Answer the question
In order to leave comments, you need to log in
Ember js without cli, or how to make ember work on third-party backends?
Hello, I've been fighting with Amber for several days already.. Due to ignorance of English, understanding is problematic.
According to the standard instructions for version 1.11 (ember), I launched the server on the Node. But it’s not needed on the node, it’s needed on jang, version 1.10 somehow made friends with jang, but I’m trying to switch to version 11, and in the textbooks everything is set up very tricky, the ember somehow loads the files and searches among them for the controllers he needs, routes, etc.
In total, it is absolutely incomprehensible how to run the application without Node.
The code from the example causes the error Uncaught SyntaxError: Unexpected reserved word (for the word import)
If you have any thoughts on how to unbind ember from Nod, please share. Or at least explain how this same auto-loading of files works. Where does Nod end and Ember begins?
import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';
var App;
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver: Resolver
});
loadInitializers(App, config.modulePrefix);
export default App;
Answer the question
In order to leave comments, you need to log in
The node is needed only for the development and assembly of the project. After the build, you have static files, copy them to the backend where you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question