rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
704 stars 178 forks source link

How would i be able to change the text on specific pages & Importing from old site #474

Closed Pikachubolk closed 2 years ago

Pikachubolk commented 2 years ago

Hi, I would like to change the text on the TOS page and change it up a little I've tried doing it by changing things in /szuru/client/Html/help_tos.tpl but it doesn't change anything

I've tried pulling it again restarting it

I hope someone could help me with this, thanks.

neobooru commented 2 years ago

The easiest way to do this would be to edit your docker-compose.yml file like this.

# Under client, replace the "image: ..." line with "build: ./client"
# So, change this
#  client:
#    image: szurubooru/client:latest
# To this
  client:
    build: ./client

After this you should be able to just docker-compose up (or docker-compose up -d) to automatically build the client and start both the server and the client.

Pikachubolk commented 2 years ago

Sadly it doesn't seem to work it gives an error "Service 'client' failed to build : failed to parse platform : " " is an in valid component of " ": platform speciefier component must match "^[A-Za-z0-9_-]+$" : invalid argument"

And I'm also having a bit of trouble with port forwarding since it just doesn't seem to work? No matter what I try? So could you help me with this aswel?

And thanks for helping me

Device Specs: Operating system: Ubuntu 64 bits (VM) Operating system ver: 21.10 Virtual machine hosting: Personal PC V-ram: 6GB V-Cores: 3 Need more information? Just ask me.

neobooru commented 2 years ago

Could you try running the following command before running docker-compose?

export DOCKER_BUILDKIT=1; export COMPOSE_DOCKER_CLI_BUILD=1
# And then start/build
docker-compose up

Not sure whether that does anything, but someone mentioned that it might work.

If that does not work, just remove --platform=$BUILDPLATFORM from the client/Dockerfile wherever it appears (it should be in two places, line 1 and line 14).

# Example
FROM --platform=$BUILDPLATFORM node:lts as builder
# becomes
FROM node:lts as builder

More info

Pikachubolk commented 2 years ago

I Fixed it It's working now Thanks 👍

Pikachubolk commented 2 years ago

Just another question, could I change the Szurubooru link and change it to a fork so it grabs stuff from the fork instead?

neobooru commented 2 years ago

Which link are you talking about? The link at the bottom of the home page? Or some other link?

Pikachubolk commented 2 years ago

No I mean link it my FORK of This project, so I can change the files of my version of szurubooru via GitHub

TiredSysOp commented 2 years ago

No I mean link it my FORK of This project, so I can change the files of my version of szurubooru via GitHub

https://github.com/rr-/szurubooru/blob/70f2164dc6c5d9950bb4279eb01ce5c7c33e80a7/client/Dockerfile#L9

TiredSysOp commented 2 years ago

Ah, I reread what you posted a few times and realised what you meant. Just follow the old installation instructions, I'll try and dig them up

TiredSysOp commented 2 years ago

https://github.com/rr-/szurubooru/blob/83442b497795616e33e81e6938c59fa4c2482027/doc/INSTALL.md

git clone from your own fork and build locally

Anything fancier than that requires you to set up your own docker container images on docker hub, leave the build info alone in this case and update https://github.com/rr-/szurubooru/blob/master/.github/workflows/build-containers.yml on your fork and I assume you'll have to poke around on docker.com too

Pikachubolk commented 2 years ago

Could I also do this without reinstalling the project?

Pikachubolk commented 2 years ago

Ignore the old one. Hey, @TiredSysOp and @neobooru I've fixed the old problem, but now it gives me these errors.

password does not match for user "USERNAME"

and

password authentication failed for user "USERNAME"

I know what it means, but I don't know how to fix it since it still refers to the database that installs a start-up. but I've replaced the SQL and the data folder, so what I'm asking is: "Is there another folder I Have to change?"

Is this a warning from Postgres?

Pikachubolk commented 2 years ago

I fixed it. I had to change the Postgres password in the .env file.