Skip to content

Commit

Permalink
private ip cloudbuild migration not working
Browse files Browse the repository at this point in the history
  • Loading branch information
CrysR committed Dec 19, 2024
1 parent 9e01da6 commit b077a9e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions db-migrate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
sudo
#sudo

apt-get update && apt-get install -y \
zip \
Expand All @@ -15,18 +15,18 @@ apt-get clean && rm -rf /var/lib/apt/lists/*

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
echo "xxxxxxxxxxxxxx$USER"
chown -R $USER:$USER ./
chgrp -R $USER storage bootstrap/cache && chmod -R ug+rwx storage bootstrap/cache
#chown -R $USER:$USER ./
#chgrp -R $USER storage bootstrap/cache && chmod -R ug+rwx storage bootstrap/cache

composer install
#composer install

php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
#php artisan optimize:clear
#php artisan config:cache
#php artisan route:cache
#php artisan view:cache

# Run Laravel migration (by force, since it would be a prod-environment)
php artisan migrate --force
#php artisan migrate --force


# curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && apt-get install -y nodejs
Expand Down

0 comments on commit b077a9e

Please sign in to comment.