Results 1 to 7 of 7

Thread: exports.conf file location

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516

    exports.conf file location

    Following on from a discussion on directories in:

    https://www.lianja.com/community/sho...13-Directories

    If one has several projects where is the best place to save the exports.conf for each one?

    Or does one need to use just one in the root directory and have all entries for all projects in that?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,972
    exports.conf relates to an App.

    It can exist in either the app or the library.

    It looks in the app first and if that does not exist it looks in the library.

    You can create a symbolic link in your apps to a file of your choosing.

    Bear in mind the exports.conf proxies javascript function calls on the client to remote procs (LianjaScript, Python or JavaScript) on the server, so it needs to know these are which is typically in libraries using the :: notation which exist in either the current app or the library directory.

    You cannot and should not have files splattered all around the directory structure which is common with VFP. Developing for web/mobile is different so Lianja enforces some level of uniformity to the pathing process.

    And yes you can use thirdpartylib subdirectories if you so wish.
    Last edited by barrymavin; 2020-10-28 at 06:18.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Hi Barry,

    OK now I'm confused, not hard

    When you say in the app or in the library, the directory structure is

    Data directory C:\Lianja\data\
    Apps directory C:\Lianja\apps\
    Library directory C:\Lianja\library\

    So I take app to be C:\Lianja\apps\ and library to be C:\Lianja\library\

    That is fine for one exports.conf file. I assume the name of the file has to remain as exports.conf ?

    What do you do if you have several of them, where physically on the drive would you put say three different ones?

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,972
    No.

    Apps have their own sub folders in the apps directory. This is basic 101 Lianja.

    So if you create an app in Lianja called aims all of the files associated with that app are in

    c:\lianja\apps\aims\

    and when you deploy to the cloud they are in

    c:\lianja\cloudserver\public\wwwroot\apps\aims\

    where wwwroot is the tenancy name which defaults to public

    This directory structure simplifies development on windows for example and deployment to a Linux server and visa versa.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Hi Barry,

    OK now I am VERY confused, sorry I seem a bit dim on some things but it's a new learning curve for me and at my age it take a while to get things.

    I asked about directories in my post below and wanted exactly what you are saying above, to have all my app files for my aims app in a folder c:\lianja\apps\aims\

    https://www.lianja.com/community/showthread.php?5213-Directories


    I read your reply to that to be that no I could not and they all had to be in c:\lianja\apps\

    If I can have them in c:\lianja\apps\aim\ that would make life a lot easier.

    David

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,972
    I think Iíve explained. All files for an individual app are in the app sub folder under the apps directory.

    What you previously asked eluded to not using the apps folder for storing apps.

    just create an app called aims and open it then drag files into the files tree. Whenever you open that app you now can edit any of these files. Itís dimple and straightforward.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  7. #7
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Thanks Barry,

    What I was asking for before was

    "For a new project named aims I want to have

    Apps directory C:\Lianja\apps\aims\
    Library directory C:\Lianja\library\aims\"

    I should have used the term app I guess rather than project in that post

    Anyway as long as I can do it this way then it will work fine for me.

    Thank you for your patients and explanations, I'm getting there slowly

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us