Fix sass generation

This commit is contained in:
rubenwardy 2018-05-23 21:19:02 +01:00
parent d5342d7096
commit f809cdcab0
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
3 changed files with 3 additions and 3 deletions

@ -247,7 +247,7 @@ def importRepoScreenshot(id):
try:
filename = randomString(10) + ".png"
imagePath = os.path.join("public/uploads", filename)
imagePath = os.path.join("app/public/uploads", filename)
print(imagePath)
urllib.request.urlretrieve(urlmaker.getScreenshotURL(), imagePath)

@ -47,7 +47,7 @@ def doFileUpload(file, allowedExtensions, fileTypeName):
return None
filename = randomString(10) + "." + ext
file.save(os.path.join("public/uploads", filename))
file.save(os.path.join("app/public/uploads", filename))
return "/uploads/" + filename

@ -45,7 +45,7 @@ def _getDirPath(originalPath, create=False):
return path
def sass(app, inputDir='scss', outputPath='static', force=False, cacheDir=None):
def sass(app, inputDir='scss', outputPath='static', force=False, cacheDir="public/static"):
static_url_path = app.static_url_path
inputDir = _getDirPath(inputDir)
cacheDir = _getDirPath(cacheDir or outputPath, True)