Skip to content

Commit 28f810f

Browse files
committed
dreeve fix
1 parent 8924a48 commit 28f810f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ct/dreeve.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function update_script() {
4545
cd /opt/dreeve
4646
export COMPOSER_ALLOW_SUPERUSER=1
4747
export APP_ENV=prod
48-
$STD /opt/frankenphp/frankenphp php-cli /usr/local/bin/composer install --no-dev --optimize-autoloader --no-interaction
48+
$STD /opt/frankenphp/frankenphp php-cli /usr/local/bin/composer install --no-dev --optimize-autoloader --no-interaction --no-scripts
4949
msg_ok "Installed PHP Dependencies"
5050

5151
msg_info "Running Migrations"
@@ -54,6 +54,8 @@ function update_script() {
5454
source /opt/dreeve/.env.local
5555
set +a
5656
$STD /opt/frankenphp/frankenphp php-cli bin/console app:db:migrate --no-interaction
57+
$STD /opt/frankenphp/frankenphp php-cli bin/console assets:install public --no-interaction
58+
rm -rf /opt/dreeve/var/cache/prod
5759
$STD /opt/frankenphp/frankenphp php-cli bin/console cache:warmup --env=prod
5860
msg_ok "Ran Migrations"
5961

install/dreeve-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ msg_info "Installing PHP Dependencies (Patience)"
4141
cd /opt/dreeve
4242
export COMPOSER_ALLOW_SUPERUSER=1
4343
export APP_ENV=prod
44-
$STD /opt/frankenphp/frankenphp php-cli /usr/local/bin/composer install --no-dev --optimize-autoloader --no-interaction
44+
$STD /opt/frankenphp/frankenphp php-cli /usr/local/bin/composer install --no-dev --optimize-autoloader --no-interaction --no-scripts
4545
msg_ok "Installed PHP Dependencies"
4646

4747
msg_info "Configuring Dreeve"
@@ -87,6 +87,7 @@ set -a
8787
source /opt/dreeve/.env.local
8888
set +a
8989
$STD /opt/frankenphp/frankenphp php-cli bin/console app:db:migrate --no-interaction
90+
$STD /opt/frankenphp/frankenphp php-cli bin/console assets:install public --no-interaction
9091
$STD /opt/frankenphp/frankenphp php-cli bin/console cache:warmup --env=prod
9192
msg_ok "Initialized Database"
9293

0 commit comments

Comments
 (0)