Compare commits
5 Commits
f4642767ac
...
v0.5.2
Author | SHA1 | Date | |
---|---|---|---|
f05568b0de | |||
da4a3e41c6 | |||
77f86f7102 | |||
358695977f | |||
ddfd75c1f8 |
10
README.md
10
README.md
@ -57,6 +57,16 @@ Once in the destination folder, clone all the relevant files you will need for t
|
|||||||
|
|
||||||
(Remember to include the trailing dot at the end, as that indicates to Git to download the files in the current directory.)
|
(Remember to include the trailing dot at the end, as that indicates to Git to download the files in the current directory.)
|
||||||
|
|
||||||
|
#### Choose What Database Engine You Will Use
|
||||||
|
|
||||||
|
This app is designed to use an SQLite database by default.
|
||||||
|
You can set it up to use a MySQL database by configuring the environment variables accordingly.
|
||||||
|
If your database is being hosted remotely, make sure the MySQL database has the proper authentication for the user from a remote server.
|
||||||
|
Alternatively, you can also use the second `docker-compose-mysql.yml` file which provides a MySQL database as part of the cluster.
|
||||||
|
To use the second `docker-compose-mysql.yml` file, use the following command at the last step of the installation:
|
||||||
|
|
||||||
|
```sudo docker compose -f docker-compose-mysql.yml up```
|
||||||
|
|
||||||
#### Populate Environment Variables
|
#### Populate Environment Variables
|
||||||
|
|
||||||
Configuration values for the app are stored in the environment variables file.
|
Configuration values for the app are stored in the environment variables file.
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
depends_on:
|
depends_on:
|
||||||
app:
|
- app
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
|
@ -24,7 +24,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
depends_on:
|
depends_on:
|
||||||
app:
|
- app
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
@ -43,7 +43,7 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
depends_on:
|
depends_on:
|
||||||
postfix:
|
- postfix
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
container_name: reftest_postfix
|
container_name: reftest_postfix
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<div class="d-flex w-100 justify-content-between">
|
<div class="d-flex w-100 justify-content-between">
|
||||||
<h5 class="mb-1">Dataset</h5>
|
<h5 class="mb-1">Dataset</h5>
|
||||||
</div>
|
</div>
|
||||||
{{ test.dataset.date.strftime('%Y%m%d%H%M%S') }}
|
<a href="{{ url_for('view._view_console', id=test.dataset.id) }}">{{ test.dataset.get_name() }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item list-group-item-action">
|
<li class="list-group-item list-group-item-action">
|
||||||
<div class="d-flex w-100 justify-content-between">
|
<div class="d-flex w-100 justify-content-between">
|
||||||
|
@ -215,7 +215,7 @@ def _update_user(id:str):
|
|||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
if not user: return jsonify({'error': 'User does not exist.'}), 400
|
if not user: return jsonify({'error': 'User does not exist.'}), 400
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
if not user.verify_password(request.form.get('confirm_password')): return jsonify({'error': 'Invalid password for your account.'}), 401
|
if not current_user.verify_password(request.form.get('confirm_password')): return jsonify({'error': 'Invalid password for your account.'}), 401
|
||||||
success, message = user.update(
|
success, message = user.update(
|
||||||
password = request.form.get('password'),
|
password = request.form.get('password'),
|
||||||
email = request.form.get('email'),
|
email = request.form.get('email'),
|
||||||
|
Reference in New Issue
Block a user