Initial commit
This commit is contained in:
commit
e86ab53de5
35 changed files with 2638 additions and 0 deletions
24
main.py
Normal file
24
main.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Podcastrr - A podcast management application similar to Sonarr but for podcasts.
|
||||
"""
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
from app.web.app import create_app
|
||||
|
||||
# Load environment variables from .env file
|
||||
load_dotenv()
|
||||
|
||||
# Create Flask application instance
|
||||
app = create_app()
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Get port from environment variable or use default
|
||||
port = int(os.environ.get("PORT", 5000))
|
||||
|
||||
# Run the application
|
||||
app.run(
|
||||
host="0.0.0.0",
|
||||
port=port,
|
||||
debug=os.environ.get("FLASK_ENV") == "development"
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue