Open po5 opened 3 months ago
May be a stupid question, but I have never changed something server side wise. So how could I implement it, after changing the files?
What I do for client side updates is docker compose down && docker compose build && docker compose up -d
, but it doesn't catch the server updates :)
Thanks for your help!
I merged this branch on a fresh git pull of rr-:master
and I get 502 bad gateway errors. See screenshot.
The domain is behind cloudflare, if that matters. Any clue what could be causing this? Pulling my hair out :/
I merged this branch on a fresh git pull of
rr-:master
and I get 502 bad gateway errors. See screenshot.
The domain is behind cloudflare, if that matters. Any clue what could be causing this? Pulling my hair out :/
Post logs and check this https://github.com/rr-/szurubooru/wiki/Common-errors
Well doesn't seem to be a permission issue. When I remove the embed merge and rebuild everything works again. Sorry here's the docker-compose logs
output:
server-1 | INFO [alembic.runtime.migration] Will assume transactional DDL.
server-1 | Starting szurubooru API on port 6666 - Running on 4 threads
server-1 | Traceback (most recent call last):
server-1 | File "/usr/bin/waitress-serve-3", line 33, in <module>
server-1 | sys.exit(load_entry_point('waitress==1.4.4', 'console_scripts', 'waitress-serve')())
server-1 | File "/usr/lib/python3.8/site-packages/waitress/runner.py", line 270, in run
server-1 | app = resolve(module, obj_name)
server-1 | File "/usr/lib/python3.8/site-packages/waitress/runner.py", line 211, in resolve
server-1 | obj = __import__(module_name, fromlist=segments[:1])
server-1 | File "/opt/app/szurubooru/facade.py", line 11, in <module>
server-1 | from szurubooru import api, config, db, errors, middleware, rest
server-1 | File "/opt/app/szurubooru/api/__init__.py", line 2, in <module>
server-1 | import szurubooru.api.embed_api
server-1 | File "/opt/app/szurubooru/api/embed_api.py", line 13, in <module>
server-1 | with open(f"{config.config['data_dir']}/../index.htm") as index:
server-1 | FileNotFoundError: [Errno 2] No such file or directory: '/data//../index.htm'```
Differences with the approaches in #421, #422 and #441:
name
attribute instead ofproperty
)Things that can be improved later:
Meant to be used with an nginx config like:
Discord
Twitter
![image](https://github.com/rr-/szurubooru/assets/42466980/3abb43f3-0261-47ee-a04a-f6e2132b96cc)
Closes #416