Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 57

stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
11/21/13 08:59 PM (12 years ago)

Changing Design back to Live

Put app on app store, with Live setting in config.txt. Now changing it to Design so I can make changes to the app without it being pushed to users. When I decide to push it to the users, I know I'm supposed to hit the Publish button. My question is, before I hit the publish button do i have to change Design back to Live, or is the only time I need to change it back to Live is when I do a full app update to the app store? Thanks. Steve
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/21/13 09:22 PM (12 years ago)
It's sort of like this… you don't actually 'change' modes in the control panel. Your server keeps two configurations ready to go. One for Design, and one for Live. The Live config only gets updated when you press the 'Publish' button. The Design config gets updated on every change you make. So a user gets your app from the app store. When they open the app, the first thing that happens is the app will 'call home' to see if there are any updates. Because the app is in 'Live' mode, it will look for updates that have occured to the 'Live' config, and will ignore any changes to the 'Design' config. Unless you 'publish' your current configuration, thus 'syncronizing' the configuration of the control panel with the 'Live' config file, no user with an App Store provided app will notice the change. You have your own device, or simulator, and it uses the 'Design' config. Every single change you make in the control panel, is reflected in the 'Design' mode config. This is so you can test your heart out, while others using an App with the 'Live' config, are never interupted or inconvenienced while you do your testing. When you're finished with testing, and you're happy with your new configuration, you can 'Publish' the new config. On the next app start, the users will be given the opportunity to download the new config, and THEN they will see your changes. The only time you should need to provide an update to the app store is when something in your app 'bundle' changes, requiring a recompile and resubmission. This shouldn't happen very often at all. Cheers! -- Smug
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
11/21/13 09:29 PM (12 years ago)
Smug, My app has some html files which I may change every now and then. I would have to recompile and resubmit then, right since this has nothing to do with the BT configuration, but is a change to an actual file in BT_DOCS? And again, I never have to change the Design back to Live until I ever do a recompile, right? Steve
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/21/13 11:15 PM (12 years ago)
Well, if the HTML files reside 'within' the app, then you'll need to change your BT_Docs, recompile, and resubmit. If the files live on a server, and you're just changing the URL within the BT Control Panel, then you'll be fine without a recompile. Just publish the changes and you're good. You'll never change modes from Live/Design. You only put a Live config in your 'production' ready apps. Keep the 'Design' mode config for your test units. Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
11/22/13 09:12 AM (12 years ago)
Smug -- that is a keeper, the best coherent explanation on this topic! :-) -- Niraj
 

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.