-
Notifications
You must be signed in to change notification settings - Fork 2k
[bug] Remove non CF specific files [closes #861] #864
Conversation
Tests are failing waiting on #863. They have nothing to do with this specific PR. |
@jd-carroll Can you try this to see if this resolves your issue? |
Re-running the CI here to make sure the tests pass. |
LGTM |
@codydaig My original though here was that if you were deploying to CF that you would want to use the minimized version of these files, just like in production. However now that I think about it you may just be doing development and/or testing on CF so maybe it is not necessary. I suppose if you want to run production you can add the files in after the fact. |
That seems to do the trick! I'm a little confused by the change, I would have expected the opposite almost. So if someone could explain a little more why this fixes the issue it would be appreciated. Also, every time I run cf push, I first have to cut/paste my node_modules folder. Then once done, cut/paste the node_modules folder back into the project. Anyone know why this might be the case? |
@jd-carroll the problem was that the CF environment file was missing one of the required angular dependencies. By removing all the dependencies from the CF environment file we will inherit the default environment dependencies therefore eliminating the need to maintain dependencies in many different environments. As for you issue with the node_modules folder, you shouldn't have to do that. In fact the node_modules folder isn't even uploaded to CF when you do the |
@jd-carroll The configuration of cloud-foundry.js and default.js are merged together and the environment file takes priority. It's smart enough to merge objects deeply, however, when it gets to an array the array in the environment config overwrites the array in the default config. Hope that clarifies things a bit. @ryanjbaxter That's the difficult part about having cloud-foundry as a seperate enviorment, it doesn't inherit development or production. It is its own env. So yes, once the user decides developemnt or production, they can manually set-up their configuration files. @lirantal Sounds like this is good to go then. |
Great! |
[bug] Remove non CF specific files [closes #861]
Since the CF env assets doesn't contain anything specific, I stripped it down so it will default to the default settings.
Closes #861
@ryanjbaxter