Snippets Collections
#!/bin/sh
set -e
 
echo "Deploying application ..."
 
# Enter maintenance mode
(php artisan down --message 'The app is being (quickly!) updated. Please try again in a minute.') || true
    # Update codebase
    git fetch origin deploy
    git reset --hard origin/deploy
 
    # Install dependencies based on lock file
    composer install --no-interaction --prefer-dist --optimize-autoloader
 
    # Migrate database
    php artisan migrate --force
 
    # Note: If you're using queue workers, this is the place to restart them.
    # ...
 
    # Clear cache
    php artisan optimize
 
    # Reload PHP to update opcache
    echo "" | sudo -S service php7.4-fpm reload
# Exit maintenance mode
php artisan up
 
echo "Application deployed!"
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
star

Wed Jun 08 2022 06:41:17 GMT+0000 (UTC)

#apache
star

Fri Apr 22 2022 17:12:36 GMT+0000 (UTC) https://www.ssls.com/knowledgebase/how-to-install-an-ssl-certificate-on-apache/?gclid

#bash #ssl #linux #apache #certificates

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension