[AC-4546] App deployed with development settings
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-11-02T19:26:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | android, config.json |
Reporter | Creative |
Assignee | Shak Hossain |
Created | 2016-10-12T07:56:21.000+0000 |
Updated | 2016-11-03T09:47:15.000+0000 |
Description
Yesterday I published the Android version of an app; later I found out it used the development config in
config.json
instead of production.
I have had this issue once before and it is likely because of the message:
[INFO] : [config.json] config.json unchanged, using cached config.json...
I've got a strong feeling this isnt working properly. I had just updated my config.json, (I believe without using AppcStudio -> Project -> Clean...
before I packaged the project) and it used the development config.
Later I built the iOS app (not knowing the issue on the Android package yet) and it appeared to build correctly.
I hereby suggest: dont use any sort of "cache" function for such simple files as config.json
. This file is likely not gonna be bigger than 200 lines and not caching it is probably the easiest fix.
Thanks for your request. It's always better to do a clean in the project before the production build.
Please reopen this report. If you change something in the config.json, it sometimes doesnt recognize that change. Unfortunately I cant reproduce a testcase. It might be OS dependent (Mac/Windows/Linux). The easiest fix is to exclude this config.json from being cached and I think that is a much safer solution since its such an important file to have correct. I'm sure more people have encountered this issue.