Ensure existence of static build dir
parent
68fdd55482
commit
13202cc6b1
|
@ -12,6 +12,6 @@ app/static/custom_config
|
|||
app/static/bangs
|
||||
|
||||
# pip stuff
|
||||
build/
|
||||
/build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
|
|
|
@ -101,7 +101,12 @@ for cb_dir in cache_busting_dirs:
|
|||
full_cb_path = os.path.join(full_cb_dir, cb_file)
|
||||
cb_file_link = gen_file_hash(full_cb_dir, cb_file)
|
||||
build_path = os.path.join(app.config['BUILD_FOLDER'], cb_file_link)
|
||||
|
||||
try:
|
||||
os.symlink(full_cb_path, build_path)
|
||||
except FileExistsError:
|
||||
# Symlink hasn't changed, ignore
|
||||
pass
|
||||
|
||||
# Create mapping for relative path urls
|
||||
map_path = build_path.replace(app.config['APP_ROOT'], '')
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
Loading…
Reference in New Issue