ember.jsember-cliember-pods

Ember CLI with Pods


I've been trying to move my Ember app across to use pods in preparation of 2.0.

I moved all the files, set the environment.js paramters and now my app shows nothing but the empty index.html. What have I done wrong?

I've attached screenshots of my setup.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

UPDATE:

So as Kyle suggested in the comments, if I move my pod directories out of /pods and into the /app, and then don't set podModulePrefix it starts working.

But how do I get everything in /pods?

I tried setting podModulePrefix to livin/app/pods, app/pods and livin/pods and nothing seems to work. I don't think I undertsand the relationship of modulePrefix and podModulePrefix and the directory name of app. Do they all need to match?

My current directory is setup like this, if it helps.

livin/ app/ pods/ index/ application/ login/ components/ styles/ public/ config/


Solution

  • As stated in my comment, remove podModulePrefix from your environment file and throw your pods in the root of the app folder.

    I've never been able to get podModulePrefix to work, and I believe the momentum is against putting your pods in a separate folder anyway. Since pods are destined to be the default folder structure in the future, having your pods in the root of your app makes more sense.