1
0
Fork 0
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:
anmol26s 2018-07-24 01:02:06 +05:30
parent c66e481a7f
commit e655deb201

View file

@ -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 "__PORT__" "$port" "$final_path/config.production.json"
# Migrate tables in database
(
cd "$final_path"
NODE_ENV=production knex-migrator init
)
#=================================================
# NGINX CONFIGURATION