Laravel deploy to server
At first we need to clear some configurations like php artisan view:clear php artisan config:clear php artisan route:clear php artisan cache:clear
At first we need to clear some configurations like php artisan view:clear php artisan config:clear php artisan route:clear php artisan cache:clear
sudo apt update sudo apt install curl unzip sudo apt install php php-curl curl -sS https://getcomposer.org/installer -o composer-setup.php sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer composer -V
Upload the source fileconfigure nginx server as server { listen 80; server_name example.com; root /var/www/html/example/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location…
It works for me. I just use password between single quotation because of special character is not allowed in .env file. DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=db DB_USERNAME=user DB_PASSWORD='@#####'