Discussion Forums  >  Self Hosted Control Panels

Replies: 34    Views: 204

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
01/04/14 07:18 AM (11 years ago)

new self-hosted tool: App Copier

How can I move my Buzztouch.com app to self-hosted? This question keeps coming up every month or two it seems, so I finally decided to do something about it. Introducing the App Copier. Usage is incredibly easy. Simply enter the dataURL to your app and press copy. In a few seconds you will have copied your entire app over! https://buzztouchmods.com/market/crcopy/crcopy.html Note: As with any powerful tool, there is potential for use by the dark side. Please don't abuse this. Would hate to have to come find you and hunt you down! Seriously, though, this will also let us create app templates! One more note: you will need to have all the plugins installed that the app uses, otherwise those screens won't copy over.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/04/14 07:53 AM (11 years ago)
Interesting idea, app templates!! Nice
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/04/14 08:04 AM (11 years ago)
Well done Chris! Congratulations Best Regards, Danny
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/04/14 08:16 AM (11 years ago)
Nice indeed! :) Cheers! -- Smug
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/04/14 08:17 AM (11 years ago)
@chris is this a addon to the self hosted install, a plugin? any screenshots. sounds interesting whats the setup? thanks ed
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 08:19 AM (11 years ago)
Install is easy. Just copy the script into your admin directory and point your browser to the file. It will add a link to your admin links for easy reference. I'll post a screenshot soon.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 08:35 AM (11 years ago)
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/04/14 09:26 AM (11 years ago)
gotcha
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/04/14 09:35 AM (11 years ago)
Wondering if you are using the future-proof approach by taking advantage of the BT Server API. One way into the database is through the JSON Data section for each Screen. This is a much needed capability. Thanks for creating it. Please make an update on the Readme if the Files are copied or not. A warning for the future ... Buzztouch may close that capability to thwart the app pirates. ( it was mentioned in the Year in Review post by David Book ) -- Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 09:48 AM (11 years ago)
yep, if people abuse this, it will come down immediately. Buzztouch can also revoke people's API credentials if it comes to that. But hopefully that doesn't happen. Frankly, it was always possible to copy a Buzztouch app by copying the BT_config.txt file and placing it on your own server. This just makes things a bit easier from a content-management perspective. This tool works by analyzing the JSON from the BT_config.txt file and creating all the same screens on the new server. So, it should be "future proof" from that perspective. Not sure what you mean by "Please make an update on the Readme if the Files are copied or not. "?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/04/14 09:50 AM (11 years ago)
The Files as in images, docs, etc. that are hosted on a BT server. Does the tool copy those files to another BT Server?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 09:52 AM (11 years ago)
Ah - no, those are not copied over, since they are not in the BT_config.txt file. That's one copy protection people will still have - it's possible, but not easy, to get the graphics, etc out of an existing app and copy it to a new one.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/04/14 09:53 AM (11 years ago)
A feature request: Allow me to alternatively specify a BT_config.txt file that resides on my own computer. I often will manually create a JSON file. This will help me get all that JSON easily into the database. --Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 09:54 AM (11 years ago)
Thought about that, but wanted to make it really simple to use. One thing you should be able to do, though, is upload that file to an online site (probably could even use the Buzztouch file manager), and then point the link to that.
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
01/04/14 09:55 AM (11 years ago)
thank you already. ok…its official..I’m going self hosted
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
01/04/14 10:11 AM (11 years ago)
I love you guys for making my life easier!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 10:29 AM (11 years ago)
Yep - anyone who creates similar apps for clients (like for a particular industry) definitely needs this tool. Create one app, then copy it to a second one and start changing the details.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
01/04/14 10:53 AM (11 years ago)
Just caught the post, impressive Chris1, you've made many very happy. Will check this out.
 
Pancho
Code is Art
Profile
Posts: 221
Reg: Mar 06, 2012
Lima
11,610
like
01/04/14 11:24 AM (11 years ago)
This is great Chris1! Finally... time to go self-hosted.
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
01/04/14 11:42 AM (11 years ago)
Way to go Chris 2014 is your year!
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/04/14 02:02 PM (11 years ago)
If it gets abused and has to be taken down does it self destruct for existing purchasers.. Thank you Mr. Hunt this mod will self destruct in 5.4.3.2.1 ka blam...
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/04/14 02:04 PM (11 years ago)
You are da man! Awesome! Tim
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 02:22 PM (11 years ago)
No way to self-destruct, sorry. Maybe version 2.0...
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
01/05/14 05:37 AM (11 years ago)
Fantastic Chris. Congrats. Miguel
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/07/14 05:48 PM (11 years ago)
hi, Chris Really nice tool, help me a lot... There is just one thing unclear for me, when I want to copy the app in my local server, as the "template function" you mentioned above, but I can't find the "core properties" in the control panel, so I can't get the dataURL of the APP. do you know how to solve this problem? thanks, Regards, SKywalker
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/07/14 05:55 PM (11 years ago)
In your BT or Self Hosted control panel, select an app (or create one, if it's new and has no apps). The 'core' control panel page is in the 'App' control panel, not the 'server' control panel… Depending on the way the app control panel is displayed, it will be a link either on the left side, or on the top… It will only say 'Core'. (App Icon/*Core*/Layout/Themes/Screens/Menus/App Users/Files Media/Json Data (config data in BT)/Publish Changes) Cheers! -- Smug
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/07/14 05:58 PM (11 years ago)
I find it. Thanks, Smug Cheers! Skywalker
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/07/14 06:27 PM (11 years ago)
There's another problem occurred, when I finished coping the app from buzz server to my server, uploaded the app icon(It seems that I should reset the tab-layout option, no configuration there), download the project source code etc. The problem is that when I finally run the new copied app in my test device, I found that the app is not operatable, it react nothing when I click on the new tab icon,,, it just shows the home page.... what's wrong with this? Do you guy has encountered this? Thanks, Skywalker
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/07/14 06:32 PM (11 years ago)
What's your dataURL?
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/07/14 06:36 PM (11 years ago)
hi, Chris it's not convenient to paste the URL here... My mailbox is [email protected], we can contact personally.. Thanks, Skwalker
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 03:01 AM (11 years ago)
it seems that the custom html/text item can't not be copied correctly, the new copied app is still get content from buzz server, not my own server, hope this can be fixed.... Regards, Skywalker
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/08/14 07:20 AM (11 years ago)
The issue with Custom HTML plugin is that it's actually using a saved file. If you look at your BT_Config.txt file, you'll notice that the JSON for that screen simply has a dataURL pointing to a HTML file on the server. The App Copier tool doesn't copy files, only configuration data. The screen will still work in the copied app, as the dataURL will be copied over the same (and thus pointing to your old server). To update, you'll just need to copy the HTML from the old server and paste it into the Custom HTML editor on the new one. I'd recommend copying the source code of the HTML rather than the WYSIWYG content, to make sure your formatting stays the same.
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:24 AM (11 years ago)
OK, I got, Thanks
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:35 AM (11 years ago)
hi, chris if I copy the html content from buzz server to my own server, and this will not change the dataURL in the config.txt file, right? the app will still request and update content from buzz server, right? what If I want the change the dataURL to my server in the config.txt? should I only do it manually? Regards, Skwalker
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/08/14 07:37 AM (11 years ago)
I could be wrong, but I think it will automatically update the dataURL on the new server for that screen when you hit save. Have you tried it yet?
 

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.