PDA

View Full Version : Directory structure default locations and paths



Quailco
2013-11-19, 16:05
My existing VFP app quite large has a specific directory structure and pathing organizing it. I am looking for a good complete description of Lianja's structures and how to integrate each package on this topic. For instance can I change the default location of files like programs and tables? What will my setting of a path do to the lianja defaults?

davefoss
2013-11-19, 16:44
By default all files for a particular App are contained in the .\Lianja\apps\<app_name>\ directory. This includes programs, images, html, css, rsp, etc. Tables are contained in the .\Lianja\data\<database_container_name>\ directory. Files that are shared among Apps are in the .\Lianja\library\ directory. These defaults can be changed by clicking the "Settings" button in the bottom right of the Lianja screen. Of course, the usual SET DEFAULT, SET PATH, etc commands do work.

Please bear in mind that the Lianja directory structure is intended to facilitate sandboxing and tenancy. By working outside this structure you are limiting your deployment options with regard to cloud, mobile and cross platform deployments. This article may help you with the Lianja Way of thinking about Apps:

https://www.lianja.com/resources/blog/38-development-news/126-the-lianja-app-achitecture

I hope this helps.

Quailco
2013-11-19, 18:50
My objective is to accomplish the most efficient reimplementation of exactly the existing VFP system under Lianja; if that is possible. I desire minimal rewrites and like Lianja all my applications were developed with a vision of how such things ought to be done. Where I can make minimal compromises I will and where I must if it is within economical feasibility I will rewrite. I am not designing for the cloud or mobility; if that is needed I am sure to adjust my techniques and at most only a surface resemblance of this current LAN based application will exist.

Question. If I move a dir containing the program files i need as my first stage test when I recompile or convert them into lianja will they be copied or moved to the Lianja\library or left alone

Does my objective and lack of immediate interest in the cloud potential conflict with Lianja's vision. Is it possible to accomplish the kind of reimplementation I see as being needed by my client using Lianja.

Quailco
2013-11-24, 13:46
I am getting the impression Lianja that my questions are unimportant to you I have serious reservations that begin with how u control the directory structure and why free tables aren't free. You strongly emphasize your web potential while not even speaking of the desktop Lan VFP applications that abound.

HankFay
2013-11-24, 18:08
I am getting the impression Lianja that my questions are unimportant to you I have serious reservations that begin with how u control the directory structure and why free tables aren't free. You strongly emphasize your web potential while not even speaking of the desktop Lan VFP applications that abound.

Hi,

to add to Dave's post, which did answer your question about directories, I would add "yes you can -- see the posts by Herb Mischel for examples -- but you will do a lot of work with less gain than you would if you took your business rules code and moved to the Lianja way of developing." If you are looking for a direct VFP replacement, why look at all? VFP will likely continue to run for another 5 or more years -- it's unlikely MS will remove the 32-bit compatibility layer from the OS anytime soon.

Hank