-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
manuel
committed
Sep 20, 2024
1 parent
f27691a
commit 0ef7032
Showing
13 changed files
with
111 additions
and
701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
UPLOAD_FOLDER='/path/to/the/uploads' | ||
ALLOWED_EXTENSIONS={'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'} | ||
FET_CONFIG_MODE='Debug' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bind = '0.0.0.0:8081' | ||
bind = '192.168.1.61:8082' | ||
workers = 5 | ||
worker_class = 'gevent' | ||
accesslog = '-' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
from dotenv import load_dotenv | ||
from flask_migrate import Migrate | ||
from configs.config import config_dict | ||
from app import create_app, db | ||
import os | ||
import sys | ||
|
||
load_dotenv() | ||
|
||
get_config_mode = os.environ.get("FET_CONFIG_MODE", "Debug") | ||
|
||
try: | ||
config_mode = config_dict[get_config_mode.capitalize()] | ||
except KeyError: | ||
sys.exit("Error: Invalid FET_CONFIG_MODE environment variable entry.") | ||
|
||
app = create_app(config_mode) | ||
Migrate(app, db) | ||
from run import app | ||
|
||
if __name__ == "__main__": | ||
app.run() | ||
app.run(host='192.168.1.61', port=8082, debug=False) |