mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
furthur fixes
This commit is contained in:
parent
903d1ccb12
commit
47bed384d2
8 changed files with 7 additions and 28 deletions
|
@ -9,7 +9,7 @@ export PORT=__PORT__
|
||||||
# export APP_SETTINGS=fittrackee.config.ProductionConfig
|
# export APP_SETTINGS=fittrackee.config.ProductionConfig
|
||||||
export APP_SECRET_KEY='__KEY__'
|
export APP_SECRET_KEY='__KEY__'
|
||||||
# export APP_WORKERS=
|
# export APP_WORKERS=
|
||||||
export APP_LOG=fittrackee.log
|
export APP_LOG=/var/log/__APP__/__APP__.log
|
||||||
export UPLOAD_FOLDER=/home/yunohost.app/__APP__/data
|
export UPLOAD_FOLDER=/home/yunohost.app/__APP__/data
|
||||||
|
|
||||||
# PostgreSQL
|
# PostgreSQL
|
||||||
|
|
|
@ -29,7 +29,7 @@ Environment="MAP_ATTRIBUTION="
|
||||||
Environment="WEATHER_API_KEY="
|
Environment="WEATHER_API_KEY="
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
EnvironmentFile=__INSTALL_DIR__/.env
|
EnvironmentFile=__INSTALL_DIR__/.env
|
||||||
ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile __INSTALL_DIR__/gunicorn.log
|
ExecStart=__INSTALL_DIR__/.venv/bin/gunicorn -b 127.0.0.1:__PORT__ "fittrackee:create_app()" --error-logfile /var/log/$app/$app.log
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
BookWyrm est un réseau social pour garder la trace de vos lectures, parler de livres, écrire des critiques et découvrir quoi lire ensuite.
|
|
|
@ -1,10 +0,0 @@
|
||||||
This project is still young and isn't, at the moment, very stable, so please proceed with caution when running in production.
|
|
||||||
|
|
||||||
Generate the admin code with ``` sudo -u bookwyrm /var/www/bookwyrm/venv/bin/python3 /var/www/bookwyrm/manage.py admin_code```, and copy the admin code to use when you create your admin account. You can get your code at any time by re-running that command. Here's an example output:
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
*******************************************
|
|
||||||
Use this code to create your admin account:
|
|
||||||
c6c35779-af3a-4091-b330-c026610920d6
|
|
||||||
*******************************************
|
|
||||||
```
|
|
|
@ -1,10 +0,0 @@
|
||||||
Ce projet est encore jeune et n'est pas, pour le moment, très stable, faites preuve de prudence lors de son utilisation en production.
|
|
||||||
|
|
||||||
Générez le code administrateur avec ``` sudo -u bookwyrm /var/www/bookwyrm/venv/bin/python3 /var/www/bookwyrm/manage.py admin_code```, et copiez le code administrateur à utiliser lors de la création de votre compte administrateur. Vous pouvez obtenir votre code à tout moment en réexécutant cette commande. Voici un exemple de sortie :
|
|
||||||
|
|
||||||
```bash
|
|
||||||
*******************************************
|
|
||||||
Use this code to create your admin account:
|
|
||||||
c6c35779-af3a-4091-b330-c026610920d6
|
|
||||||
*******************************************
|
|
||||||
```
|
|
Binary file not shown.
Before Width: | Height: | Size: 143 KiB |
BIN
doc/screenshots/screenshot-fittrackee.png
Normal file
BIN
doc/screenshots/screenshot-fittrackee.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 566 KiB |
|
@ -39,7 +39,7 @@ mkdir -p "$install_dir"
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
mkdir -p .venv
|
mkdir -p .venv
|
||||||
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install fittrackee==$fittrackee_version
|
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install fittrackee==$fittrackee_version python-dotenv
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.ser
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}"
|
yunohost service add "${app}" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers"
|
yunohost service add "${app}_workers" --log="/var/log/$app/$app_workers.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
@ -106,8 +106,8 @@ yunohost service add "${app}_workers"
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name="${app}" --action="start" --log_path="systemd" --line_match="Booting worker with pid"
|
ynh_systemd_action --service_name="${app}" --action="start" --log="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
||||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name="${app}_workers" --action="start" --log="/var/log/$app/$app_workers.log" --line_match="ready"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue