Compare commits
No commits in common. "81644090171836dc05bc8ad175d417a3db2bd654" and "bc22c73cb2174687ed3a51df4ae0dda1d91d71be" have entirely different histories.
8164409017
...
bc22c73cb2
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
# Configs
|
||||
priceybot2/config/*
|
||||
!priceybot2/config/*.*.sample
|
||||
docker-config/*
|
||||
priceybot2/config/service-acct.json
|
||||
priceybot2/config/db.py
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
version: "2.1"
|
||||
services:
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:latest
|
||||
container_name: mariadb
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
|
||||
- MYSQL_DATABASE=USER_DB_NAME
|
||||
- MYSQL_USER=MYSQL_USER
|
||||
- MYSQL_PASSWORD=DATABASE_PASSWORD
|
||||
volumes:
|
||||
- ./docker-config:/config
|
||||
ports:
|
||||
- "3306:3306"
|
||||
restart: unless-stopped
|
||||
@ -7,12 +7,11 @@ from .config import db as db_config
|
||||
db = SQLAlchemy()
|
||||
migrate = Migrate()
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = '//'
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = db_config.SQL_URI
|
||||
app.config['TEMPLATES_AUTO_RELOAD'] = True
|
||||
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
@ -26,7 +25,7 @@ def create_app():
|
||||
@login_manager.user_loader
|
||||
def load_user(user_id):
|
||||
return User.query.get(int(user_id))
|
||||
|
||||
|
||||
from . import models
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="is-clipped">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
Reference in New Issue
Block a user