How to deploy without SSH access to hosting? There is a simple shared hosting. There is no SSH on the hosting.
What is the correct way to deploy in such conditions?
@ev -genius you can do all kinds of composer and php artisan commands locally. Once done then just push your entire local project on the server, including the vendor folder also.
in the .env file I changed:
APP_ENV=production
APP_DEBUG=false
and DB setting
after that
composer install --optimize-autoloader --no-dev
npm install
npm run production
artisan commands
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
Add to exclude "node_modules"
Than move laravel folder to hosting.
And there are error:
Illuminate\Database\QueryException
SQLSTATE[HY000] [1045] Access denied for user...
what I did wrong?
In .env you enter wrong user/password/database for MySQL access.
Please sign in or create an account to participate in this conversation.