Discussion Forums  >  Self Hosted Control Panels

Replies: 2    Views: 75

@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
01/15/14 09:33 PM (11 years ago)

(resolved) Which App files can safely be copied?

So I successfully moved my self hosted server and database from GoDaddy to a new domain at HostGator. I also successfully moved my APP over and it is working perfectly with one exception. **Take note** everyone like me who has a lot of custom hacks in your app. I did a lot of file hacking to get email to work with a tabbed layout, to change the navbar/status bar and tab bar colors, layout and font colors etc. So now with the app on a new server all those hacks are no longer present in the new App after being download from the new server.I made so many custom changes that I cant even remember all of them (note to self, keep notes of any custom hacks) So my first thought was that I will just copy most of the files/folders from my old app into the new app project in Xcode. So here is my question. What specific files/folders in an app project must remain with the project to keep it tied to the BT server that it resides on. For example I know I can copy over the old layout folder from the previous app into the new one, what other folders can safely be copied over without breaking the apps link to the hosting server?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/15/14 11:35 PM (11 years ago)
It sort of goes like this: BT projects are put together based on the User configuration as outlined in the Control Panel, be it self hosted or BT hosted. the control panel (database) keeps track of your apps, the plugins they use, the data you've provided. When you download your project, regardless of Android or iOS, you're getting a 'package' that includes the BT core files, the plugins requested, and the configuration last seen in the control panel 'at the time of download'. Any changes you make to *any* code in your downloaded package is *not* replicated anywhere. If you redownload your package, you're getting a 'fresh' copy with no embellishments. Only what you've configured in the control panel. So… that being said, a workflow will vary from person to person, but you'll want to document any changes you make to the 'BT Core', as well as any plugins. because the copy you work on, is the only copy 'like that' around. Until you back it up. I'm on a Mac, and I use an application called 'Code Box' to keep track of my code snippets. I have a section I (have to recreate now with iOS 7) use with little things I do to my code to make it behave the way I desire. You don't need to buy an app. Either find a freeware package for your platform, or heck, use a well organized directory and a bunch of aptly named text files. Whatever works best for you. A user suggested that BT add a 'notepad' feature into the app so they could keep notes separate for each app. Until it gets accomplished my suggestion was to use a CustomHTML plugin as a notepad 'receptor', since it has basic HTML/Text editing built in. Just don't publish *that* particular screen. If you make radical changes to your project, 'typically' you'll want to re-download a fresh copy. However, in the case you've made many undocumented changes, you may just want to update the BT_config.txt file in your existing project, and add any new plugins 'manually', so that you can continue to work with your modified code, rather than spend a lot of time tracking down your changes and re-implementing them. Cheers! -- Smug Edit: My bad: not Code Base. Code Box. I think it's around $10.
 
@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
like
01/15/14 11:45 PM (11 years ago)
Thanks Smug, I actually got it all worked out and working agin....but CodeBase sounds interesting, I am going to take a look at it. Thx
 

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.