zaubererty / ember-cli-django-rest-auth

Auth-Provider for Django-Rest-Framework with Ember-Simple-Auth
GNU Lesser General Public License v3.0
12 stars 5 forks source link

fails when --environment=production #1

Closed dbinetti closed 10 years ago

dbinetti commented 10 years ago

I can get this to work on development, but it fails when I run ember serve --environment=production. the error is Uncaught 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!

zaubererty commented 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']
    };
dbinetti commented 10 years ago

I do have that set. If you can't reproduce then it's probably something else (Broccoli?) Thanks.

theinventor commented 10 years ago

@dbinetti did you get this solved?

dbinetti commented 10 years ago

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