Closed dbinetti closed 10 years ago
You missing the production setting at your environment.js
something like this:
if (environment === 'production') {
ENV.APP.API_HOST = 'http://localhost:8000';
ENV['simple-auth'] = {
authorizer: 'authorizer:django-rest',
serverTokenEndpoint: 'http://localhost:8000/api-token-auth/',
crossOriginWhitelist: ['http://localhost:8000']
};
I do have that set. If you can't reproduce then it's probably something else (Broccoli?) Thanks.
@dbinetti did you get this solved?
Yes thank you. It was a library import issue
On Wed, Oct 8, 2014 at 12:38 PM, Troy Anderson notifications@github.com wrote:
@dbinetti did you get this solved?
Reply to this email directly or view it on GitHub: https://github.com/zaubererty/ember-cli-django-rest-auth/issues/1#issuecomment-58414597
I can get this to work on development, but it fails when I run
ember serve --environment=production
. the error isUncaught Error: Could not find module simple-auth/authenticators/base
Have you experienced this issue? I'm a total noob, so perhaps i'm missing something else related to dev v. prod?
THanks!