1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joplin_ynh.git synced 2024-09-03 19:36:03 +02:00

Fix installation

This commit is contained in:
Florent 2024-03-03 16:06:18 +01:00 committed by Florent F
parent 1521553b5b
commit efc76cea6d
4 changed files with 12 additions and 17 deletions

View file

@ -7,14 +7,8 @@ Type=simple
User=__APP__
Group=__APP__
Environment="APP_BASE_URL=https://__DOMAIN__"
Environment="APP_PORT=__PORT__"
Environment="DB_CLIENT=pg"
Environment="POSTGRES_PASSWORD=__DB_PWD__"
Environment="POSTGRES_DATABASE=__DB_NAME__"
Environment="POSTGRES_USER=__DB_USER__"
Environment="POSTGRES_PORT=5432"
Environment="POSTGRES_HOST=localhost"
Environment="__YNH_NODE_LOAD_PATH__"
EnvironmentFile=__INSTALL_DIR__/.env
WorkingDirectory=__INSTALL_DIR__/
ExecStart=/usr/bin/yarn __INSTALL_DIR__/packages/server start

View file

@ -1,9 +1,8 @@
Now login to Joplin
- Url: https://__DOMAIN____PATH__
- Email: __ADMIN_MAIL__
- Password: __ADMIN_PASS__
- Url: https://**DOMAIN\_\_**PATH\_\_
- Email: **ADMIN_MAIL**
- Password: **ADMIN_PASS**
Then you may change the default password at this page: https://**DOMAIN\_\_**PATH\_\_/admin/users
Then you may change the default password at this page: https://__DOMAIN____PATH__/admin/users
Then download one of these Joplin apps and configure the synchronisation with your server: https://joplinapp.org/help/install/

View file

@ -67,9 +67,10 @@ chown $app:$app "$install_dir/.env"
#=================================================
ynh_script_progression --message="Building $app..." --weight=10
pushd $install_dir
pushd $install_dir/packages/server
ynh_use_nodejs
sudo -u $app env $ynh_node_load_PATH BUILD_SEQUENCIAL=1 yarn install --inline-builds
sudo -u $app env $ynh_node_load_PATH yarn build
sudo -u $app env $ynh_node_load_PATH yarn cache clean
ynh_secure_remove .yarn/berry
popd

View file

@ -49,11 +49,12 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building $app..." --weight=10
pushd $install_dir
pushd $install_dir/packages/server
ynh_use_nodejs
sudo -u $app env $ynh_node_load_PATH BUILD_SEQUENCIAL=1 yarn install --inline-builds
# sudo -u $app env $ynh_node_load_PATH yarn cache clean
# ynh_secure_remove .yarn/berry
sudo -u $app env $ynh_node_load_PATH yarn build
sudo -u $app env $ynh_node_load_PATH yarn cache clean
ynh_secure_remove .yarn/berry
popd
fi