This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I found an error while trying to create a new database table using the following Artisan command:
php artisan plugin:refresh Acme.Demo
When I executed this command I got the following error message:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES)
The problem is that I was not trying to access my local database (localhost). I have different database credentials for my local development environment and my remote environment. I have stored the credentials for my remote environment in app/config/local/database.php because I want to be able to access the remote database while I am developing locally. This has worked fine for me until I tried this command. Artisan just ignored the app/config/local version of database.php and used the version in app/config instead (which references localhost). I was able to fix the problem by just temporarily updating the credentials in app/config/database.php so I could run the command. I am not sure if this is a general Laravel issue or if it is unique to October CMS (or, for that matter, if it is even a problem at all), but I thought I should bring it to someones attention.
Last updated
use --env="my_env"
php artisan --env="my_env" plugin:refresh Acme.Demo
See
php artisan list
And Yuo can see your current env
php artisan env
Hi How can I run this command in octobercms by php code on any controller of plugin. "php artisan plugin:refresh Acme.Demo"
I don't have ssh access that is why I need that, please.
Hi I am looking for a way to refresh also without ssh access. Being able to do this in the backend would be great!
1-4 of 4