Skip to content

Instantly share code, notes, and snippets.

@elsayed85
Created April 8, 2021 08:00
Show Gist options
  • Save elsayed85/e7033b50f789e1868b1662a5a9aa6dbd to your computer and use it in GitHub Desktop.
Save elsayed85/e7033b50f789e1868b1662a5a9aa6dbd to your computer and use it in GitHub Desktop.
# GIT MERGE OPTIONS DEPENDING HOSTING PROVIDERS
# git checkout -- .
# git checkout .
# git merge
# php artisan down || true
php artisan down
git reset --hard
git clean -df
# replace {branch} with your branch name like master or main
git pull origin {branch}
composer dump-autoload -o
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev
php artisan migrate --force
php artisan auth:clear-resets
php artisan clear-compiled
php artisan auth:clear-resets
php artisan optimize:clear
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
# NPM OR YARN
npm ci
npm run production
# npm install --only=prod
# yarn --production=true
# yarn run production
php artisan optimize
php artisan queue:restart
composer dump-autoload -o
php artisan up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment