Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Deploying a project

Questions related to using nuBuilder Forte.
Post Reply
dgoadby
Posts: 12
Joined: Sat Jun 20, 2009 12:40 am
Location: Near Aberdaron in North Wales, UK

Deploying a project

Unread post by dgoadby »

I'm getting used to nuBuilder and it's a very productive tool. So far I have created forms and reports and tables in the original development environment.

I now want to deploy the application to the target system which has an existing database. I can copy the new tables across ok but what do I do with the actual application? I can copy the nuBuilder folder to the Apache htdocs folder and the database tables to the traget MySQL database but, do I just change the database settings in the config file to match the new database?

Are there any traps/pitfalls in this strategy?

Also, what if I need to access data from more than one database? Can this be done easily?

And, finally, how can I clone a form or report from one development environment to another?
Regards

David Goadby (North Wales, UK)
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Deploying a project

Unread post by kev1n »

dgoadby wrote:
I now want to deploy the application to the target system which has an existing database. I can copy the new tables across ok but what do I do with the actual application? I can copy the nuBuilder folder to the Apache htdocs folder and the database tables to the traget MySQL database but, do I just change the database settings in the config file to match the new database?

Are there any traps/pitfalls in this strategy?
1. Export the whole DB to an SQL file and import the db dump to the destination database.
2. Copy the nuBuilder files to the target location.
3. Update the nuConfig.php file
dgoadby wrote: Also, what if I need to access data from more than one database? Can this be done easily?
nuBuilder doesn't support multiple databases. But you can use the PHP BE (Before Edit) to load data from another db.
dgoadby wrote: And, finally, how can I clone a form or report from one development environment to another?
There is no direct way but you can copy the corresponding rows from source to destination.

Data is mainly stored in these tables:

zzzzsys_object
zzzzsys_form
zzzzsys_php
zzzzsys_tab
zzzzsys_event
zzzzsys_report
dgoadby
Posts: 12
Joined: Sat Jun 20, 2009 12:40 am
Location: Near Aberdaron in North Wales, UK

Re: Deploying a project

Unread post by dgoadby »

Thank you very much for a very comprehensive reply.

That's just what I wanted to know.
Regards

David Goadby (North Wales, UK)
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Deploying a project

Unread post by admin »

.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Deploying a project

Unread post by miasoft »

nuBuilder doesn't support multiple databases. But you can use the PHP BE (Before Edit) to load data from another db.
I don't understand, all my databases in new projects must have name "nubuilder4" ?
(I am new, sorry)
Wbr, miasoft.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Deploying a project

Unread post by Janusz »

Hi,
You can assign any name you want to your database - and you can create as many DB as you want.
But in one browser you can open only one at the same time if they are on the same domain (if on different domains no problem)
If you want to open another one (in the same browser) - first you need to close the first DB switch OFF and ON the browser (like Chrome for example) - or if you do not want to restart browser you need to clean cookies for that domain.
At the same time you can open as well different databases on different browser for example one in Chrome the other in Firefox if needed.
Przechwytywanie.JPG
and in nuconfig.php
you need to indicate the name of DB

Code: Select all

$nuConfigDBName                 = "TestDB";
as well you can assign different globeadmin names do different DB. In my case I keep for example as following - but you can do here as you want.
Przechwytywanie1.JPG
You do not have the required permissions to view the files attached to this post.
If you like nuBuilder, please leave a review on SourceForge
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Deploying a project

Unread post by miasoft »

Thank you, Janusz!
Wbr, miasoft.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: Deploying a project

Unread post by apmuthu »

A multi tenanted nuBuilder can be made by the config file having an array of arrays, one element array for each database.
Post Reply