mirror of
https://github.com/YunoHost-Apps/firefly-iii_ynh.git
synced 2024-09-03 18:36:13 +02:00
Fixed composer,php7.1,nginx.conf
This commit is contained in:
parent
26c5eb1775
commit
137ed2d4ea
4 changed files with 7 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
location ^~ __PATH__ {
|
||||
alias __FINALPATH__/public/;
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
try_files $uri $uri/ @firefly;
|
||||
index index.php index.htm index.html;
|
||||
# Force https
|
||||
if ($scheme = http) {
|
||||
|
@ -18,3 +18,7 @@ index index.php index.htm index.html;
|
|||
}
|
||||
|
||||
|
||||
location @firefly {
|
||||
rewrite /(.*)$ /index.php?/$1 last;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ group = __USER__
|
|||
; specific port;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = /var/run/php5-fpm-__NAMETOCHANGE__.sock
|
||||
listen = /var/run/php7.1-fpm-__NAMETOCHANGE__.sock
|
||||
|
||||
; Set listen(2) backlog. A value of '-1' means unlimited.
|
||||
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
|
||||
|
|
|
@ -96,7 +96,7 @@ init_composer() {
|
|||
|| ynh_die "Unable to install Composer"
|
||||
|
||||
# update dependencies to create composer.lock
|
||||
exec_composer "$DESTDIR" create-project --no-dev --prefer-dist firefly-iii 4.7.4 \
|
||||
exec_composer "$DESTDIR" install --no-dev --prefer-dist --no-scripts \
|
||||
|| ynh_die "Unable to update firefly-iii core dependencies"
|
||||
}
|
||||
|
||||
|
|
|
@ -134,22 +134,9 @@ cd $final_path && sudo /usr/bin/php7.1 artisan config:clear
|
|||
|
||||
db_name=$(ynh_sanitize_dbid $app)
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
ynh_replace_string "yunouser" "$db_name" "$final_path/.env"
|
||||
ynh_replace_string "yunopass" "$db_pwd" "$final_path/.env"
|
||||
ynh_replace_string "yunobase" "$db_name" "$final_path/.env"
|
||||
ynh_replace_string "yunomail" "$email" "$final_path/.env"
|
||||
ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
|
||||
|
||||
|
||||
# setup application config
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan -q :refresh --seed --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 passport:install --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan -q setup:production --force
|
||||
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue