Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

IsaacBen's avatar

Cannot deploy project

So i uploaded my repository and it's linking me to the pages, but I get an error from forge that it cannot deploy my project. "SQLSTATE[HY000] [1045] Access denied for user 'forge'@'ip_address' (using password: NO) ". I have access to the ssh already. Also when I run "php artisan migrate" I get "could not open input file artisan". Any suggestions?

0 likes
8 replies
IsaacBen's avatar

I think now it's connected to the database but now it doesn't show the page after I was redirected from the register page. Do I need to modify my routes somehow?

IsaacBen's avatar

@vitorarjol Yes, the routes are just not working, only the default routes that comes with laravel are working. I know that because I was able to login so I'm constantly being redirected to a certain page that doesn't show up.

vitorarjol's avatar

In my servers I usually have some env like this:

DB_HOST=YourServerIp
DB_DATABASE=databasename
DB_USERNAME=forge
DB_PASSWORD=passwordSentToYourEmail

Are your routes cached? Try using this command:

php artisan route:clear
vitorarjol's avatar

Another tip @itzikbenh. Put the APP_DEBUG=true on your variables to see what's could be causing the error.

The log files could be helpful too.

IsaacBen's avatar

@vitorarjol The route:clear didn't work, I did exactly like you in the environment. on what file can I set the APP DEBUG? Becaue I don't have the .env file anymore

IsaacBen's avatar

Okay I got APP DEBUG to work, it seems that it doesn't recognize a variable for some reason

1 like

Please or to participate in this conversation.