mirror of
https://github.com/Findus23/cr-search.git
synced 2024-09-19 15:23:44 +02:00
fix paths
This commit is contained in:
parent
13594241cf
commit
797214712e
4 changed files with 6 additions and 5 deletions
2
app.py
2
app.py
|
@ -23,7 +23,7 @@ else:
|
||||||
CACHE_TYPE = "NullCache"
|
CACHE_TYPE = "NullCache"
|
||||||
|
|
||||||
# Create a Flask WSGI app and configure it using values from the module.
|
# 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__)
|
app.config.from_object(__name__)
|
||||||
cache = Cache(app)
|
cache = Cache(app)
|
||||||
flask_db = FlaskDB(app)
|
flask_db = FlaskDB(app)
|
||||||
|
|
4
ssr.py
4
ssr.py
|
@ -16,7 +16,7 @@ from models import Episode, Series
|
||||||
|
|
||||||
ssr_routes = Blueprint("ssr_routes", __name__, template_folder="templates")
|
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()
|
index_html = f.read()
|
||||||
|
|
||||||
placeholder_token = '<title>CR Search</title>'
|
placeholder_token = '<title>CR Search</title>'
|
||||||
|
@ -28,7 +28,7 @@ def draw_image(text: str, description: str, subtitle=None) -> BytesIO:
|
||||||
if subtitle:
|
if subtitle:
|
||||||
text += "\n" + subtitle
|
text += "\n" + subtitle
|
||||||
width, height = (1200, 600)
|
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)
|
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)
|
title_font = ImageFont.truetype("web/fonts/Nodesto Caps Condensed/Nodesto Caps Condensed.otf", 120)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/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
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
* @type {import('@vue/cli-service').ProjectOptions}
|
* @type {import('@vue/cli-service').ProjectOptions}
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
assetsDir: "assets/"
|
assetsDir: "assets/",
|
||||||
|
outputDir: "../dist/"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue