aihao

joined 4 years ago
[–] [email protected] 1 points 2 years ago (1 children)

I want to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory. Thereby, the theme file in the container can be modified on the host machine. Added the following code in docker-compose.yml:

 volumes:
   - ./volumes/lemmy-ui:/app/dist/assets/css/themes

After running the instance, no files appear in the host lemmy/volumes/lemmy-ui directory.

So, what should I do to map the /app/dist/assets/css/themes directory in the container to the host lemmy directory? ? ?

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago) (1 children)

I change the database name to lemmyok in docker-compose.yml and lemmy.hjson, and use the command "docker-compose exec postgres psql -U lemmyok" and get " psql: error: FATAL: role "lemmyok" does not exist ",can't enter PG.

If I use the command docker-compose exec postgres psql -U lemmy without changing the database name, I can enter PG normally.

Am I doing something wrong?

What should be the correct solution?

[–] [email protected] 1 points 2 years ago (3 children)

What is the docker-compose command?

[–] [email protected] 1 points 2 years ago (5 children)

sudo docker exec -it postgres psql -U postgres ? Not correct?

2
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

ubuntu10, Debian 11

Build from source always errors:

 Compiling quickcheck v1.0.3
   Compiling phf_generator v0.8.0
   Compiling phf_generator v0.10.0
   Compiling bcrypt v0.12.1
error: failed to run custom build command for `lemmy_utils v0.16.3 (/root/server/crates/utils)`

Caused by:
  process didn't exit successfully: `/root/server/target/release/build/lemmy_utils-3c8f53b241e1ef04/build-script-build` (exit status: 1)
 
***
stderr
  Error: FileRead { file: "translations/email/en.json", source: Os { code: 2, kind: NotFound, message: "No such file or directory" } }

How to solve this problem?

[–] [email protected] 1 points 2 years ago (10 children)

What I mean is to use the command docker exec -it 9f3678b6218f /bin/bash to enter the Docker instance and then modify the theme file.

[–] [email protected] 2 points 2 years ago (1 children)

i installed Lemmy with Docker, And the site is normal. The documentation says " save your theme file to ./volumes/lemmy-ui/extra_themes.”

I didn't find this ". /volumes/lemmy-ui/extra_themes", there are only these three files volumes, docker-compose.yml, lemmy.hjson in /lemmy/.

 

How to edit theme style in docker?

~# docker exec -it 9f3678b6218f /bin/bash OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

How can this be solved?

[–] [email protected] 1 points 2 years ago (1 children)

tar.gz link cannot be downloaded

[–] [email protected] 3 points 4 years ago (3 children)

After you fill in your email in the login box, a link to reset your password will appear on the right. The problem is that this link does not seem to work.

[–] [email protected] 3 points 4 years ago* (last edited 4 years ago) (2 children)

I just updated and translated this file on my phone. As for adding it to the project, you need to do it. I cannot open that website. Sorry.

 

I updated the Chinese language translation file zh.json, please add developers to the new version of lemmy.

This document is translated from en.json, and the original zh.json part is revised. There are still errors, and the translation will continue to be updated in the future.

https://github.com/wymail/lemmy_zh/archive/main.zip

6
submitted 4 years ago* (last edited 4 years ago) by [email protected] to c/[email protected]
 

All lemmy sites:

This post only collects lemmy websites

I suggest you submit your URL in the comments

lemmy.ml

https://derpy.email/

https://lemmy.tedomum.net/

https://lemmy.juggler.jp/

https://lemmy.beckmeyer.us/

https://lemmy.ca/

https://lemmygrad.ml/

https://lemmy.cardina1.red/

https://lemmy.cat/ ......