mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-24 16:51:25 -05:00
Force artisan to migrate in the init.sh so migrations don't need to be run manually when committing to production
This commit is contained in:
parent
1e1c062f56
commit
2a7aecb835
1 changed files with 2 additions and 2 deletions
4
init.sh
4
init.sh
|
@ -93,8 +93,8 @@ msg "Updating ${c_y}CACHE_BUST$c_w variable"
|
|||
sed -i 's|^CACHE_BUST=.*|CACHE_BUST='"$(LC_CTYPE=C LANG=C tr -dc A-Za-z0-9 </dev/urandom | head -c 32)"'|' .env
|
||||
|
||||
(( ! no_artisan )) && {
|
||||
msg "Running: ${c_m}php artisan migrate"
|
||||
php artisan migrate || error "${c_m}php artisan migrate$c_w exited with an error status"
|
||||
msg "Running: ${c_m}php artisan migrate --force"
|
||||
php artisan migrate --force || error "${c_m}php artisan migrate --force$c_w exited with an error status"
|
||||
}
|
||||
|
||||
msg "Running: ${c_m}npm install"
|
||||
|
|
Loading…
Reference in a new issue