Skip to content

Advanced config changes don't persist #12

Description

@jscottelblein

Using the latest version of LLC, I've noticed a few times now that changes I make to the Advanced config don't get saved between container restarts. Is there some file I need to mount so it persists?

Activity

  1. JulianPrieber commented on Aug 28, 2022

    @JulianPrieber
    Member

    I'm currently working on including data persistence in the documentation.

    The easiest solution I came up with is moving the entire web application to a persistent volume.

    Something like this:

    1. Create volume:
      docker volume create llc

    2. Running the Docker image normally while mounting the volume:
      docker run --detach --name littlelink-custom --publish 80:80 --publish 443:443 --restart unless-stopped --mount source=llc,target=/htdocs julianprieber/littlelink-custom

    --mount source=llc,target=/htdocs julianprieber/littlelink-custom


    Let me know how this worked for you, and I'll include it in the docs 👍

  2. jscottelblein commented on Aug 28, 2022

    @jscottelblein
    ContributorAuthor

    I don't know about the inner workings of this specific app, but I usually like to keep mounted things for only specific config (rather than entire apps where some or many of the files never change). There's already a database in use for LLC; is it possible to just save the changes (and use them) from a db table in it?

  3. JulianPrieber commented on Aug 28, 2022

    @JulianPrieber
    Member

    If you wish to save only selective files, you should save the following files and folders:

    /htdocs/.env
    /htdocs/database/database.sqlite
    /htdocs/config/advanced-config.php
    /htdocs/littlelink/images/avatar.png
    /htdocs/themes (folder)
    /htdocs/img (folder)
    

    This might change with future releases.

  4. YouveGotMeowxy commented on Sep 1, 2022

    @YouveGotMeowxy

    Is database.sqlite required when using a mysql db?

  5. JulianPrieber commented on Sep 1, 2022

    @JulianPrieber
    Member

    Is database.sqlite required when using a mysql db?

    In that case, it is not required.

  6. YouveGotMeowxy commented on Sep 2, 2022

    @YouveGotMeowxy

    Last question (i think lol), what is /htdocs/littlelink/images/avatar.png for (like, where is it used) ? I'm confused because the user uploads their avatar in their profile and it gets saved in img, and also because it's an actual .png instead of an editable file, unless it is often deleted and re-saved as the same file name by LLC?

  7. JulianPrieber commented on Sep 2, 2022

    @JulianPrieber
    Member

    The avatar.png is used to store the custom site logo.

    chrome_xFp7lY1FID

    If you do not plan on using that one, you can skip that as well.

  8. YouveGotMeowxy commented on Sep 3, 2022

    @YouveGotMeowxy

    The avatar.png is used to store the custom site logo.

    chrome_xFp7lY1FID

    If you do not plan on using that one, you can skip that as well.

    ok thanks :)

    just so I fully understand, if I change the logo, it deletes this one and renames the uploaded one to "avatar.png?" (and how come the logo is called an avatar? haha)

  9. JulianPrieber commented on Sep 4, 2022

    @JulianPrieber
    Member

    just so I fully understand, if I change the logo, it deletes this one and renames the uploaded one to "avatar.png?" (and how come the logo is called an avatar? haha)

    Yup, pretty much like that.

    I can't really say for certain why the image is called that by I think I got a fairly good understanding why.

    This function was implemented in the application LLC is forked from (https://github.com/khzg/littlelink-admin).
    This thing is again based on the plain HTML project LittleLink (https://github.com/sethcottle/littlelink). In this thing, the profile image on the "home page" is called avatar.png in the files. So I think Khashayar just kept that name when implementing this.

    We still even have the original comments from LittleLink in the source code, so this project was kept very close to the source material.

  10. JulianPrieber commented on Sep 6, 2022

    @JulianPrieber
    Member
  11. locked and limited conversation to collaborators on Sep 6, 2022
  12. converted this issue into a discussion #14 on Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions