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

Fixed nginx config

This commit is contained in:
anmol 2020-10-17 03:43:56 +05:30
parent c809e02dc6
commit 77d0749834
2 changed files with 3 additions and 5 deletions

View file

@ -37,8 +37,7 @@ location @monica {
rewrite .well-known/security.txt$ __PATH__/security.txt permanent; rewrite .well-known/security.txt$ __PATH__/security.txt permanent;
# Old carddav url # Old carddav url
rewrite carddav/(.*) __PATH__/dav/$1 permanent; rewrite carddav/(.*) __PATH__/dav?/$1 permanent;
# rewrite all to index.php # rewrite all to index.php
rewrite ^(.*)$ __PATH__/index.php/$1 last;
} }

View file

@ -141,7 +141,6 @@ ynh_replace_string --match_string="language" --replace_string="$language" --targ
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Deploying..."
pushd "$final_path" pushd "$final_path"
php$phpversion artisan monica:update --force
php$phpversion artisan setup:production --email=$email --password=$password -vvv -n php$phpversion artisan setup:production --email=$email --password=$password -vvv -n
php$phpversion artisan passport:client --password -n > key.txt php$phpversion artisan passport:client --password -n > key.txt
mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- ) mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- )