Move uploads directory check to Makefile
This commit is contained in:
parent
4666c07109
commit
d715f3bd36
2 changed files with 1 additions and 5 deletions
1
Makefile
1
Makefile
|
@ -41,3 +41,4 @@ daemon:
|
|||
post_upgrade: upgrade_env run_migrations
|
||||
# Make sure a tmp directory exists
|
||||
mkdir acmsite/tmp
|
||||
mkdir acmsite/uploads
|
||||
|
|
|
@ -44,11 +44,6 @@ def create_app():
|
|||
|
||||
from .models import User
|
||||
|
||||
# Ensure that uploads directory exists
|
||||
try:
|
||||
os.mkdir(app.config["UPLOAD_FOLDER"])
|
||||
except FileExistsError:
|
||||
pass
|
||||
|
||||
from .main import bp as main_bp
|
||||
app.register_blueprint(main_bp)
|
||||
|
|
Loading…
Add table
Reference in a new issue