New Year revamp #40

Merged
FrederikBaerentsen merged 31 commits from gregoo/BrickTracker:master into master 2025-01-19 08:19:01 +01:00
3 changed files with 13 additions and 13 deletions
Showing only changes of commit c3f3ed0593 - Show all commits

View File

@ -9,4 +9,4 @@ RUN pip install -r requirements.txt
# Bricktracker # Bricktracker
COPY . . COPY . .
ENTRYPOINT ["entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]

18
app.py
View File

@ -11,20 +11,20 @@ from bricktracker.socket import BrickSocket # noqa: E402
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# Create the Flask app
app = Flask(__name__)
if __name__ == '__main__': # Setup the app
# Create the Flask app setup_app(app)
app = Flask(__name__)
# Setup the app # Create the socket
setup_app(app) s = BrickSocket(
# Create the socket
s = BrickSocket(
app, app,
threaded=not app.config['NO_THREADED_SOCKET'].value, threaded=not app.config['NO_THREADED_SOCKET'].value,
) )
if __name__ == '__main__':
# Run the application # Run the application
logger.info('Starting BrickTracker on {host}:{port}'.format( logger.info('Starting BrickTracker on {host}:{port}'.format(
host=app.config['HOST'].value, host=app.config['HOST'].value,

0
entrypoint.sh Normal file → Executable file
View File