Skip to content

Commit

Permalink
Adding deploy.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro committed Dec 31, 2023
1 parent e869113 commit 78d0e47
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
git fetch
# Update branch
git pull origin main
# Install dependencies
composer install --no-dev --optimize-autoloader
# Run DB migration
php artisan migrate --force
# Generate updated api doc
#php artisan l5-swagger:generate
# Fix storage permission also for logs
sudo chmod 775 storage/ -R

# Get APP_VERSION
#VERSION=$(sed -n "s/.*APP_VERSION = '\(.*\)';/\1/p" version.php)
#export SENTRY_ORG=roskus-fo
#debug|info
#export SENTRY_LOG_LEVEL=debug
# Notify sentry new release version
#sentry-cli releases new -p panel $VERSION
# Associate commits with the release
#sentry-cli releases set-commits --auto $VERSION

0 comments on commit 78d0e47

Please sign in to comment.