1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00

Run db migrations to seed the database.

This commit is contained in:
orhtej2 2023-10-23 21:51:12 +02:00 committed by GitHub
parent 88bde65e08
commit d582f969b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,14 @@ ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.en
chmod 600 $install_dir/.env chmod 600 $install_dir/.env
chown $app:www-data "$install_dir/.env" chown $app:www-data "$install_dir/.env"
#=================================================
# RUN MIGRATIONS
#=================================================
pushd $install_dir
sudo -u $app php${phpversion} spark migrate
popd
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================