mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Add db migrate in upgrade script
This commit is contained in:
parent
c66e481a7f
commit
e655deb201
1 changed files with 7 additions and 0 deletions
|
@ -116,6 +116,13 @@ ynh_replace_string "__DBNAME__" "$db_name" "$final_path/config.production.js
|
||||||
ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.production.json"
|
ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.production.json"
|
||||||
ynh_replace_string "__PORT__" "$port" "$final_path/config.production.json"
|
ynh_replace_string "__PORT__" "$port" "$final_path/config.production.json"
|
||||||
|
|
||||||
|
# Migrate tables in database
|
||||||
|
(
|
||||||
|
cd "$final_path"
|
||||||
|
NODE_ENV=production knex-migrator init
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue