Discussion Forums  >  Self Hosted Control Panels

Replies: 9    Views: 86

WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
02/22/13 09:21 AM (12 years ago)

Bug in 2.1.8 configuration or bug in this developer?

I've been pulling my hair out about this but I think maybe this is a bug, involves live/design. I've read through everything from Dave and GoNorthWest and what is happening doesn't appear to be what it described, causing my apps to want to update no matter what I do. Although since I see what has been happening I can stop the behavior, but it's not what is intended I believe. On my self hosted setup just as an example, I "Publish Changes": Design mode data: "lastModified":"Fri, 22 Feb 2013 16:05:30 -0800", "lastPublished":"Fri, 22 Feb 2013 16:05:30 -0800", Live mode data: "lastModified":"Fri, 22 Feb 2013 16:03:51 -0800", "lastPublished":"Fri, 22 Feb 2013 16:03:51 -0800", config data url: "lastModified":"Fri, 22 Feb 2013 16:05:30 -0800", "lastPublished":"Fri, 22 Feb 2013 16:05:30 -0800", So we shouldn't be using the Live Mode Data even when publishing? We should use the design mode data then change the "Design" to "Live"? That's what is says on one screen I think, but then what is the Live Mode Data screen for if it never matches the url data? My brain hurts. Tim
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 09:37 AM (12 years ago)
Another note: The files are otherwise the same except for the "Live" / "Design", the times, and the last 9 lines. The curly braces / brackets are different. I don't know if one or the other is wrong, but it is different.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 10:57 AM (12 years ago)
While watching Dave's webinar I had my self hosted panel up. My Design Mode / Live Mode data IS NOT the same when Dave clearly shows it is supposed to be. In short, my Live Mode Data never matches the data from my config url. Anyone wanna weigh in? Bueller... Bueller...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/22/13 01:08 PM (12 years ago)
You'll probably have an easier time comparing them if you run it through Jsonlint first. Cheers! -- Smug
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 01:14 PM (12 years ago)
No need, the times should match. They don't.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 01:40 PM (12 years ago)
So, anyone following this thread of me answering myself... ;-) Just as a test I created a new app on my Buzztouch control panel, NOT my self hosted panel; The Design Mode data and Live Mode data match after pressing Publish. So there is a confirmed observable difference in this behavior on my self hosted setup. Dave...?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/22/13 02:02 PM (12 years ago)
Is the data in your 'live' config file the correct data? Have you made changes to the design that were sent to the 'Live' releases without publishing? Other than the timestamps being a little off, what 'problems' are you experiencing...? If the app has a live configuration, it will update when the live config tells it to (theoretically). It shouldn't concern itself with the Design config data, which 'should' only be transferred to the live config when the user pushes the 'publish' button. Is this not happening? Cheers! -- Smug
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 02:17 PM (12 years ago)
The way the apps decide whether to download new config data or use what's on the device is by the last modified timestamp of the config.txt. So if you are done changing your app, press publish, copy the JSON data into your config file in xcode or eclipse, clean, compile, run. What happens? Nothing, right? Because the timestamp from your config url and the config.txt in the package match. What is happening is the Live Mode Data is outputting the wrong timestamp. It NEVER matches the config url so it will always update the first time it is run. Not right. This isn't a huge issue except for the fact that a while back a few people got their apps rejected because they tried to update when first run. Don't remember Apple's random reason of the day, but that was the basis of it.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/22/13 02:28 PM (12 years ago)
Interesting. I just created an app on my self hosted. Design Data, no Live Data. Created a screen. Design Data, No live Data. Published. Both Design and Live data. Design Timestamp: "lastModified":"Fri, 22 Feb 2013 21:21:57 -0800", "lastPublished":"Fri, 22 Feb 2013 21:21:57 -0800", "name":"DesignLiveTest", "version":"1.0", "currentMode":"Design", Live Timestamp: "lastModified":"Fri, 22 Feb 2013 20:59:01 -0800", "lastPublished":"Fri, 22 Feb 2013 20:59:01 -0800", "name":"DesignLiveTest", "version":"1.0", "currentMode":"Live", And I see what you're saying, but isn't that all relative? If my design timestamp is off... and my app goes live... it will query the server for a new config.txt file, and from that point on, it 'should' be sync'd with whatever is published at the server.... Typically, just before final compile, I grab a copy of the latest config and paste it over my config.txt in my projects. So far, so good... Cheers! -- Smug
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/22/13 02:37 PM (12 years ago)
Right, but if you grab the Live Mode config data it will not match, it will cause the app to want to update itself on first run, not what it's supposed to do.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.