Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Development standards

Development standards

Scheduled Pinned Locked Moved Discuss
4 Posts 3 Posters 905 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ultravioletU Offline
    ultravioletU Offline
    ultraviolet
    App Dev
    wrote on last edited by
    #1

    Hi all,

    I am just embarking on Cloudron packaging. I was just wondering is there any standards where certain files should live. I have seen some repos use /app/pkg folder but I was wondering if there is something written down?

    Thanks

    murgeroM 1 Reply Last reply
    1
    • ultravioletU ultraviolet

      Hi all,

      I am just embarking on Cloudron packaging. I was just wondering is there any standards where certain files should live. I have seen some repos use /app/pkg folder but I was wondering if there is something written down?

      Thanks

      murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by murgero
      #2

      @ultraviolet most apps put source code, binaries, etc in /app/code/*. I'd use that for standard files that would not be modified by users. This folder is locked as read-only once the app is running. Also Note**: most of the filesystem in an app is read-only. This means that only a couple folders are writable once the app is packaged. This needs to be taken into account when building an app.

      /app/data/ is as it sounds, the apps data can be here (if it is not in a DB for example). Stuff like user uploads, themes, and other user-changable files/objects can go here. This folder is one of a few read-writeable folders by users when an app is running.

      /tmp is writeable as well, and is used for temp file storage.

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @ultraviolet I think your vault package is looking pretty great already. Most of the conventions are not written down (and we are also not too picky about things) as long as the code is correct. You can pick up many of the styles from the repos with the -app suffix at https://git.cloudron.io/cloudron . I will try to make some notes from your vault package.

        ultravioletU 1 Reply Last reply
        1
        • girishG girish

          @ultraviolet I think your vault package is looking pretty great already. Most of the conventions are not written down (and we are also not too picky about things) as long as the code is correct. You can pick up many of the styles from the repos with the -app suffix at https://git.cloudron.io/cloudron . I will try to make some notes from your vault package.

          ultravioletU Offline
          ultravioletU Offline
          ultraviolet
          App Dev
          wrote on last edited by
          #4

          @girish thank you 🙂 I have also packaged calibre-web and I am working on Mayan EDMS just now. If people get use out of it I am happy to share the repo too.

          1 Reply Last reply
          4
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search