From 308134fb7eb8e070a79633ceeb827c92a0734de2 Mon Sep 17 00:00:00 2001 From: Benjamyn Love Date: Thu, 9 Mar 2023 10:47:32 +1100 Subject: [PATCH] Added deploy steps and passenger_wsgi --- .cpanel.yml | 5 +++++ passenger_wsgi.py | 4 ++++ priceybot2/config/db.py.sample | 6 ++++++ priceybot2/templates/login.html | 2 +- priceybot2/templates/signup.html | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .cpanel.yml create mode 100644 passenger_wsgi.py diff --git a/.cpanel.yml b/.cpanel.yml new file mode 100644 index 0000000..c18b019 --- /dev/null +++ b/.cpanel.yml @@ -0,0 +1,5 @@ +--- +deployment: + tasks: + - export DEPLOYPATH=/home/benjamyntesting/chatbot/ + - cp -Rfv * $DEPLOYPATH \ No newline at end of file diff --git a/passenger_wsgi.py b/passenger_wsgi.py new file mode 100644 index 0000000..9d564a3 --- /dev/null +++ b/passenger_wsgi.py @@ -0,0 +1,4 @@ +from priceybot2 import create_app + + +application = create_app() diff --git a/priceybot2/config/db.py.sample b/priceybot2/config/db.py.sample index 759d215..f37e64b 100644 --- a/priceybot2/config/db.py.sample +++ b/priceybot2/config/db.py.sample @@ -1 +1,7 @@ SQL_URI = "sqlite:///database.db" + + +# MySQL connection string +# from sqlalchemy import URL +# +# url_object = URL.create("mysql", username="benjamyntesting_pbot", password="xzQ36XOPrJe2", host="localhost", database="benjamyntesting_pbot") diff --git a/priceybot2/templates/login.html b/priceybot2/templates/login.html index a341451..80cda87 100644 --- a/priceybot2/templates/login.html +++ b/priceybot2/templates/login.html @@ -11,7 +11,7 @@ {% endif %} {% endwith %} -
+
diff --git a/priceybot2/templates/signup.html b/priceybot2/templates/signup.html index bd21f73..6d6583c 100644 --- a/priceybot2/templates/signup.html +++ b/priceybot2/templates/signup.html @@ -11,7 +11,7 @@
{% endif %} {% endwith %} - +