Heroku is an awesome platform originally built on top of AWS and currently owned by Salesforce. Laravel is a powerful PHP web framework for build...
For further actions, you may consider blocking this person and/or reporting abuse
My deployment seems to work finde, until php artisan is running some script which is trying to connect to the database (which doesn't exist yet, because I haven't run migrations yet). Any idea what that happens?
...
In Connection.php line 664:
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from
questions
)...
you need to have a production database connected to heroku
I have deployed a few applications on the AWS server with Devrims Laravel Hosting Services, which was an excellent experience.
Deploying the application on Heroku could be difficult for me, but thank you for sharing this information and making it easy for all who have not deployed their applications on Heroku before.
I have never used Heroku. Is it like Forge, where you have to pay separate invoice to provider and the platform. Or like Cloudways (cloudways.com/en/laravel-hosting.php ), where you only have to pay the invoice to the platform.
It’s based on traffic and cpu. Most of the time it’s free. If you need special features the hobby plan is $7/month heroku.com/pricing
Thanks! awesome tutorial. :D
Great tutorial ! Seems like everything worked for me :) Now onto your Vue tutorial ;)
Great tutorial
Huge thing missing though:
heroku run composer install
There's another helpful tutorial here that uses more steps through the Heroku UI: mikateach.com/setting-up-laravel-5...
Thank you bro <3
I'm getting an error! That the host, user, and pass indexes of $url are undefined indexes. What am I missing?
Do you have CLEARDB_DATABASE_URL as an environment variable set in heroku? You can check by typing
herou config
devcenter.heroku.com/articles/conf...man I just had to deploy an Laravel app for a client to see how the project was going in like a EXTREMELY BIG HURRY. You saved my life, for real. God bless you.
I'm trying to deploy my laravel app but I'm having problem with the npm run production command. Can you helps us with that?
maybe. What's the error?