Rename undercover/ to app/

This commit is contained in:
Sage Vaillancourt 2022-10-02 16:32:01 -04:00
parent e2be735d3f
commit 241dfa8ba6
15 changed files with 7 additions and 9 deletions

View File

@ -7,8 +7,7 @@ from flask import Flask, Response, make_response, render_template
from flask_minify import Minify
from werkzeug.exceptions import HTTPException
import undercover.routes
import undercover.email
from app import routes, email
def create_app(test_config=None) -> Flask:

View File

@ -9,7 +9,7 @@ from uuid import uuid4, UUID
import bcrypt
import psycopg
from undercover.fallback import MockConnection
from app.fallback import MockConnection
@dataclass

View File

@ -3,7 +3,7 @@ import os
import sys
from mailjet_rest import Client
from undercover.fallback import mock_sender
from app.fallback import mock_sender
api_key = os.environ.get('MAILJET_API_KEY')
api_secret = os.environ.get('MAILJET_SECRET_KEY')

View File

@ -6,13 +6,12 @@ import subprocess
import threading
import urllib.parse
from flask import (Blueprint, render_template, request, make_response, session, redirect, jsonify, Response)
from flask import Blueprint, render_template, request, make_response, session, redirect, jsonify, Response
from wtforms import Form, SelectField, StringField, TextAreaField, validators
from email_validator import validate_email, EmailNotValidError
import undercover.db as db
import undercover.email as email
from undercover.pdf_builder import CLData
from app import db, email
from app.pdf_builder import CLData
writing_blueprint = Blueprint('writing', __name__)

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

2
start
View File

@ -18,6 +18,6 @@ if [[ "$1" == "prod" ]]; then
gunicorn -b localhost:8080 "undercover:create_app()"
else
echo "Starting local dev server..."
export FLASK_APP=undercover
export FLASK_APP=app
flask --debug run --host=0.0.0.0
fi