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:
commit
d529cc8f71
5
.cpanel.yml
Normal file
5
.cpanel.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
deployment:
|
||||
tasks:
|
||||
- export DEPLOYPATH=/home/benjamyntesting/chatbot/
|
||||
- cp -Rfv * $DEPLOYPATH
|
||||
4
passenger_wsgi.py
Normal file
4
passenger_wsgi.py
Normal file
@ -0,0 +1,4 @@
|
||||
from priceybot2 import create_app
|
||||
|
||||
|
||||
application = create_app()
|
||||
@ -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")
|
||||
|
||||
@ -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="">
|
||||
|
||||
@ -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="">
|
||||
|
||||
Reference in New Issue
Block a user