i am having issues deploying my flask app, it run well in development, but not on the server. i get these errors:Traceback (most recent call last):
File "/usr/local/lib/ruby/gems/3.2/gems/passenger-6.0.17/src/helper-scripts/wsgi-loader.py", line 400, in <module>
handler = RequestHandler(server_socket, sys.stdin, app_module.application)
AttributeError: module 'passenger_wsgi' has no attribute 'application
(vest) [James107@s0]:</usr/home/James107/domains/randvest.xyz/public_python>$ passenger-config restart-app
*** An error occured while querying the Phusion Passenger(R) server:
Status: 500 Internal Server Error
Content-Length: 22
Content-Type: text/plain
Connection: close
Internal server error
my passenger_wsgi.py file content:import sys, os
from sqlalchemy.dialects.postgresql import JSONB
from flask import Flask
from flask import render_template
from flask import request
from flask import flash
from flask import redirect
from flask import url_for
from flask import session
import os
import random
import string
import logging
from flask import request, jsonify
from sqlalchemy.exc import IntegrityError
import traceback
from decimal import Decimal
from sqlalchemy.sql.functions import user
from tronapi import Tron
from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user
from datetime import datetime
from flask_migrate import Migrate
import threading
import time
from sqlalchemy import func
from tronpy import Tron
from tronpy.keys import PrivateKey
from sqlalchemy.exc import IntegrityError
from wtforms import FloatField, StringField, SubmitField
from wtforms.validators import DataRequired, NumberRange
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
import requests
from flask_wtf import FlaskForm
from tronpy.exceptions import AddressNotFound
from tronapi import Tron, HttpProvider
import sys
import hashlib
import base58
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.dialects.postgresql import JSONB, TIMESTAMP
logging.basicConfig(filename='/usr/home/James107/domains/randvest.xyz/public_python/file.log', level=logging.INFO)
logger = logging.getLogger(name)
Log when the application is loaded
logger.info("Passenger WSGI application loaded.")
sys.path.append(os.getcwd())
from rand import app as application