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?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Deploying a project
-
- Posts: 12
- Joined: Sat Jun 20, 2009 12:40 am
- Location: Near Aberdaron in North Wales, UK
-
- 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
1. Export the whole DB to an SQL file and import the db dump to the destination database.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?
2. Copy the nuBuilder files to the target location.
3. Update the nuConfig.php file
nuBuilder doesn't support multiple databases. But you can use the PHP BE (Before Edit) to load data from another db.dgoadby wrote: Also, what if I need to access data from more than one database? Can this be done easily?
There is no direct way but you can copy the corresponding rows from source to destination.dgoadby wrote: And, finally, how can I clone a form or report from one development environment to another?
Data is mainly stored in these tables:
zzzzsys_object
zzzzsys_form
zzzzsys_php
zzzzsys_tab
zzzzsys_event
zzzzsys_report
-
- Posts: 12
- Joined: Sat Jun 20, 2009 12:40 am
- Location: Near Aberdaron in North Wales, UK
Re: Deploying a project
Thank you very much for a very comprehensive reply.
That's just what I wanted to know.
That's just what I wanted to know.
Regards
David Goadby (North Wales, UK)
David Goadby (North Wales, UK)
-
- 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
I don't understand, all my databases in new projects must have name "nubuilder4" ?nuBuilder doesn't support multiple databases. But you can use the PHP BE (Before Edit) to load data from another db.
(I am new, sorry)
Wbr, miasoft.
-
- 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
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. and in nuconfig.php
you need to indicate the name of DB
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.
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. and in nuconfig.php
you need to indicate the name of DB
Code: Select all
$nuConfigDBName = "TestDB";
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
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: Deploying a project
A multi tenanted nuBuilder can be made by the config file having an array of arrays, one element array for each database.