1
0
Fork 0
mirror of https://github.com/Findus23/cr-search.git synced 2024-09-18 14:13:45 +02:00

fix paths

This commit is contained in:
Lukas Winkler 2021-11-28 19:44:41 +01:00
parent 13594241cf
commit 797214712e
Signed by: lukas
GPG key ID: 54DE4D798D244853
4 changed files with 6 additions and 5 deletions

2
app.py
View file

@ -23,7 +23,7 @@ else:
CACHE_TYPE = "NullCache"
# Create a Flask WSGI app and configure it using values from the module.
app = Flask(__name__,static_folder='web/dist/assets/',static_url_path='/assets/')
app = Flask(__name__,static_folder='dist/assets/',static_url_path='/assets/')
app.config.from_object(__name__)
cache = Cache(app)
flask_db = FlaskDB(app)

4
ssr.py
View file

@ -16,7 +16,7 @@ from models import Episode, Series
ssr_routes = Blueprint("ssr_routes", __name__, template_folder="templates")
with open("./web/dist/index.html") as f:
with open("./dist/index.html") as f:
index_html = f.read()
placeholder_token = '<title>CR Search</title>'
@ -28,7 +28,7 @@ def draw_image(text: str, description: str, subtitle=None) -> BytesIO:
if subtitle:
text += "\n" + subtitle
width, height = (1200, 600)
img = Image.open("./web/src/assets/background_small.png")
img = Image.open("./src/assets/background_small.png")
mr_eves = ImageFont.truetype("web/fonts/Mr Eaves/Mr Eaves Small Caps.otf", 50)
title_font = ImageFont.truetype("web/fonts/Nodesto Caps Condensed/Nodesto Caps Condensed.otf", 120)

View file

@ -1,2 +1,2 @@
#!/bin/bash
rsync -rvzP web/dist/ lukas@lw1.at:/srv/server/crsearch/dist/ --fuzzy --delete-after -v
rsync -rvzP dist/ lukas@lw1.at:/srv/server/crsearch/dist/ --fuzzy --delete-after -v

View file

@ -2,5 +2,6 @@
* @type {import('@vue/cli-service').ProjectOptions}
*/
module.exports = {
assetsDir: "assets/"
assetsDir: "assets/",
outputDir: "../dist/"
}