Merge pull request 'Added deploy steps and passenger_wsgi' (#14) from feat/9-login-system into main

Reviewed-on: #14
This commit is contained in:
Benjamyn Love 2023-03-08 18:48:22 -05:00
commit d529cc8f71
5 changed files with 17 additions and 2 deletions

5
.cpanel.yml Normal file
View File

@ -0,0 +1,5 @@
---
deployment:
tasks:
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
- cp -Rfv * $DEPLOYPATH

4
passenger_wsgi.py Normal file
View File

@ -0,0 +1,4 @@
from priceybot2 import create_app
application = create_app()

View File

@ -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")

View File

@ -11,7 +11,7 @@
</div>
{% endif %}
{% endwith %}
<form method="POST" action="/login">
<form method="POST" action="{{ url_for('auth.login') }}">
<div class="field">
<div class="control">
<input class="input is-large" type="email" name="email" placeholder="Your Email" autofocus="">

View File

@ -11,7 +11,7 @@
</div>
{% endif %}
{% endwith %}
<form method="POST" action="/signup">
<form method="POST" action="{{ url_for('auth.signup') }}">
<div class="field">
<div class="control">
<input class="input is-large" type="email" name="email" placeholder="Email" autofocus="">