How to Deploy Laravel Project with Database on Heroku for Free | Step by Step Tutorial by Code Band

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 137

  • @josephuzuegbu7431
    @josephuzuegbu7431 2 года назад +3

    This tutorial is the best tutorial video that explains "how to deploy laravel app with database" perfectly. Thanks for the video

    • @CodeBand
      @CodeBand  2 года назад +1

      Glad it was helpful!

  • @joellopescunhadesouza8617
    @joellopescunhadesouza8617 Год назад +1

    Nice tutorial!!! Helped me a lot! I had even saw another videos but just with this one i managed to deploy my app. Thanks!

  • @Dharmendrakewat123
    @Dharmendrakewat123 2 года назад +1

    thank you so much for like this video ,initially i was facing errors but right now my app in online thanks buddy😜

    • @CodeBand
      @CodeBand  2 года назад +1

      Glad to hear that :)

  • @hariprabhu4997
    @hariprabhu4997 5 месяцев назад +1

    man saved the life :)

  • @benjaminjohn4439
    @benjaminjohn4439 4 года назад +2

    I have watched different videos, I still encounter errors but your method worked once 😍😍😍

    • @CodeBand
      @CodeBand  4 года назад +1

      Glad to hear that! Keep going :)

  • @charlesmarnielimpo3703
    @charlesmarnielimpo3703 3 года назад +2

    Thanks man! This is extremely helpful.

    • @CodeBand
      @CodeBand  3 года назад +1

      Happy to help😊

  • @waveyofearth
    @waveyofearth Год назад +2

    do i have to git init before heroku create if i already have a project repository in github? i created it for version control before

  • @Big_1992
    @Big_1992 3 года назад +3

    you're the man! thank you

    • @CodeBand
      @CodeBand  3 года назад +1

      Very glad to hear that😊

  • @mkgamingentertainment3786
    @mkgamingentertainment3786 4 года назад +2

    Thanks Code Band, that was really helpful

    • @CodeBand
      @CodeBand  4 года назад +2

      Glad to hear that😊

  • @dalumpines.stanley
    @dalumpines.stanley 8 месяцев назад +1

    Sir, any tips for this error?
    SQLSTATE[HY000] [2002] Cannot connect to MySQL using SSL

  • @hosamgnaba3205
    @hosamgnaba3205 3 года назад +2

    nice, thank you

  • @kestutissukys335
    @kestutissukys335 2 года назад +1

    I have a question. Why when I try to log in and when I log in to the account the project home page throws a 404 error. But when I change the name of the url to another method everything works.

    • @CodeBand
      @CodeBand  2 года назад +1

      Looks strange, were you able to solve it?

  • @ayaimad7812
    @ayaimad7812 2 года назад +1

    I don't have a database I'm using API would it still work if I deployed it ??? I hope you answer very soon

    • @CodeBand
      @CodeBand  2 года назад +1

      Sorry for the late reply....
      It will absolutely work fine...

  • @abdullahAboelkhair
    @abdullahAboelkhair 2 года назад +2

    invalid value for parameter "client_encoding": "utf8mb4"
    please help

    • @CodeBand
      @CodeBand  2 года назад +2

      Sorry for the late reply....
      Is this fixed ?
      stackoverflow.com/questions/58795504/invalid-value-for-parameter-client-encoding-utf8mb4-sql-select-from-ta

    • @abdullahAboelkhair
      @abdullahAboelkhair 2 года назад +1

      @@CodeBand it worked thanks

  • @shahhussain5563
    @shahhussain5563 2 года назад +1

    how to import mysql database with is having data ? please help me.

    • @CodeBand
      @CodeBand  2 года назад +1

      Sorry for the late reply...
      U mean to use an already running production DB ?

  • @vishnuvs870
    @vishnuvs870 3 года назад +1

    i deployed my project on heroku...but after deployment the images are not working

    • @CodeBand
      @CodeBand  3 года назад +2

      Its not an error...its the architecture of Heroku...user uploaded files is not persistent, they will eventually be lost...In order for them to work, you need to use some file storage services like aws s3...Here is a good article showing how to do that...
      dev.to/aschmelyun/getting-started-with-amazon-s3-storage-in-laravel-5b6d

    • @vishnuvs870
      @vishnuvs870 3 года назад +1

      @@CodeBand thanks

    • @CodeBand
      @CodeBand  3 года назад +1

      @@vishnuvs870 Keep going👍🏻

  • @prottaybadhon8112
    @prottaybadhon8112 3 года назад +1

    I can not commit in last step error: On branch master
    nothing to commit, working tree clean............please help me .I have tried more time but failed .................

    • @CodeBand
      @CodeBand  3 года назад +1

      You might have missed to add/commit before pushing...

  • @Dharmendrakewat123
    @Dharmendrakewat123 2 года назад +1

    fatal: 'heroku' does not appear to be a git repository
    fatal: Could not read from remote repository.
    during pushing

    • @CodeBand
      @CodeBand  2 года назад +1

      A typo in the command, probably.

  • @Akosiyawin
    @Akosiyawin 3 года назад +1

    Does it work on any file uploads? I tried it before but every time Itriied to upload a file it deletes automatically.

    • @CodeBand
      @CodeBand  3 года назад +1

      Heroku, by architecture doesn't support file uploads... You have to use services like AWS S3 for that...

  • @dhakatrends5930
    @dhakatrends5930 3 года назад +1

    i successfully deployed my project on heroku...but after deployment the images are not working. i find to use aws s3 i need a credit card which i don't have now. can you pls suggest something which is free of cost

    • @CodeBand
      @CodeBand  3 года назад +2

      As far as aws s3 is concerned, you can use a Debit Card too... I have accounts using Debit Card and I'm not pretty much if they changed their terms recently...
      There are alternatives to aws s3 such as Azure Blob Storage, Google Cloud Storage, Digitalocean Spaces etc...

    • @dhakatrends5930
      @dhakatrends5930 3 года назад +1

      @@CodeBand Thank You so much. I have a debit card. Will give it a try now. I find google cloud storage server and almost every other platform wants billing information now which is a setback for students like us

    • @CodeBand
      @CodeBand  3 года назад +1

      @@dhakatrends5930 Yeah... that's kind of a req. now a days... You should also try Github Students Pack for students, if you haven't already.

  • @samyishere2382
    @samyishere2382 2 года назад +1

    At add-on page they asking for credit card details?? What can i do for that?

    • @CodeBand
      @CodeBand  2 года назад +1

      On a new account opening in Heroku, we're required to provide our card details, they will not deduct the money.. just as a proof...

    • @samyishere2382
      @samyishere2382 2 года назад +1

      @@CodeBand Is there any way that i can link my laravel application with sql database which i created on remotesql and then deploy on Heroku? So that for this I don't need to give my credit card details and i can use database

    • @CodeBand
      @CodeBand  2 года назад +1

      CC/DC details are required as part of verification whatsoever... and regarding mysql, you can absolutely do that...
      See this :
      stackoverflow.com/questions/5397028/remote-mysql-database-on-heroku-app

  • @ilhamyudantyo3169
    @ilhamyudantyo3169 Год назад

    does this hosting has limit of storage for project file?

  • @titofrezer6201
    @titofrezer6201 4 года назад +1

    Database hosts array is empty. (SQL: select * from information_schema.table
    s where table_schema = public and table_name = migrations and table_type =
    'BASE TABLE')
    facing these erro

    • @CodeBand
      @CodeBand  4 года назад +2

      This is an error when the database credentials are not passed from heroku...check in heroku->settings->config vars, an entry named DATABASE_URL. If it's not there, db(postgres/mysql) might not have set correctly.

  • @suriyakuppuswamy596
    @suriyakuppuswamy596 2 года назад +1

    In my case everything is working fine but I am not getting session value response in my blade file from controller but session value is displayed on controller when I have done dd please help me out If any one know the solution

    • @CodeBand
      @CodeBand  2 года назад +1

      How are you accessing session value in blade file ?

  • @MohitLandge-z3r
    @MohitLandge-z3r 4 месяца назад

    getting error as Error: To create an app, verify your account by adding payment
    › information

  • @imzuyel
    @imzuyel 4 года назад +1

    It work... But if I uploaded any image in database ... After some it was missing... Any solution?

    • @CodeBand
      @CodeBand  4 года назад +2

      Its not an error...its the architecture of Heroku...user uploaded files is not persistent, they will eventually be lost...In order for them to work, you need to use some file storage services like aws s3...Here is a good article showing how to do that...
      dev.to/aschmelyun/getting-started-with-amazon-s3-storage-in-laravel-5b6d

    • @imzuyel
      @imzuyel 4 года назад +1

      @@CodeBand Thank you....

    • @CodeBand
      @CodeBand  4 года назад +1

      😊

  • @shivamsharma1717
    @shivamsharma1717 4 года назад +2

    Thank you for this great video, Can you suggest me how can I deploy local database on heroku server. I want to send my localhost database on heroku server.

    • @CodeBand
      @CodeBand  4 года назад +2

      Thank you...
      If you want to just migrate the data from local to remote heroku, just export the table from local and import in heroku postgresql. Search in google on exporting and importing tables.
      Hope this helps.
      Keep supporting... :)

    • @arwan07
      @arwan07 4 года назад +1

      Is it totally free of charge?

    • @CodeBand
      @CodeBand  4 года назад +1

      ​@@arwan07 Yeah, totally free...
      except it has some limitations...
      See www.heroku.com/free
      Thank you.

  • @XeaNeaX
    @XeaNeaX 4 года назад +1

    how to upload a picture in heroku? thats my problem

    • @CodeBand
      @CodeBand  4 года назад +1

      Uploading files wont work in Heroku unless you use some external services like aws s3. Here's a good article on how to integrate aws s3 with Laravel...
      medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce
      Thanks😊

  • @raselranacse
    @raselranacse 3 года назад +1

    *Nice Video*

    • @CodeBand
      @CodeBand  3 года назад +1

      Glad to hear that...😊

  • @akshaykumarmalathkar2968
    @akshaykumarmalathkar2968 4 года назад +1

    I'm getting these two errors after I run "heroku run php artisan migrate". I have followed all the steps as specified still getting the error.
    Please give me a solution to fix this.
    In Connection.php line 671:
    SQLSTATE[22023]: Invalid parameter value: 7 ERROR: invalid value for parameter "client_encoding": "utf8mb4" (SQL:
    select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = 'B
    ASE TABLE')
    In PostgresConnector.php line 66:
    SQLSTATE[22023]: Invalid parameter value: 7 ERROR: invalid value for parameter "client_encoding": "utf8mb4"

    • @CodeBand
      @CodeBand  4 года назад +1

      What are the errors?

  • @itsmykaimusic
    @itsmykaimusic 4 года назад +1

    database host array is empty
    please help

    • @CodeBand
      @CodeBand  4 года назад +2

      Please have a look into the link and also make sure you've followed all the steps mentioned in the tutorial...
      laracasts.com/discuss/channels/laravel/heroku-and-larvael-with-postgres-not-working

  • @mahasmilhar9950
    @mahasmilhar9950 3 года назад +1

    initial deploy I got forbidden error not a 500|server error , I complete all the step but I got only Forbidden error can you please tell the reason?

    • @RelAxGamingKing77
      @RelAxGamingKing77 3 года назад +1

      Same here!

    • @CodeBand
      @CodeBand  3 года назад +1

      stackoverflow.com/questions/47619860/laravel-5-4-on-heroku-forbidden-you-dont-have-permission-to-access-on-this-s

  • @hebaabdelmoneim9217
    @hebaabdelmoneim9217 3 года назад +1

    syntax error in code in 12 min when write in config that undefine url

    • @CodeBand
      @CodeBand  3 года назад +1

      Try to recheck the code again, it should work with the current setup...😊

  • @rajsrikantha7914
    @rajsrikantha7914 4 года назад +1

    . HI I have problem of error H14 in Heroku. Can you help me solve the problem. No more Secret_Key problem. Thanks

    • @CodeBand
      @CodeBand  4 года назад +1

      You might have done something incorrectly, please cross-check the steps...
      Meanwhile, just check this out...devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running

  • @safayethossain3553
    @safayethossain3553 3 года назад +1

    At first take my Thanks from my heart.
    I face problem to register, however i give all the information and then click to register button to register but it dose not take any action it take blur the password section and register button. please if you can suggest for this error's solution then it give me pleaser

    • @CodeBand
      @CodeBand  3 года назад +1

      I'm not sure why that doesn't worked.. might not be an issue with Heroku, just type in the following command in the terminal,
      heroku logs --tail
      And then try again the same registration procedure, you can see the logs for any possible error...

  • @rikyhendrawansaputra5781
    @rikyhendrawansaputra5781 4 года назад +1

    Undefined table: 7 ERROR: relation "Products" does not exist, why i got this error? i alredy run the heroku run php artisan migrate

    • @CodeBand
      @CodeBand  4 года назад +1

      I'm sorry for the delay...Please check the output of heroku run php artisan migrate...and also you can check the current database status (like the list of tables and all) through heroku cli or using their dataclip feature in the Postgres dashboard.
      See this article for dataclips : devcenter.heroku.com/articles/dataclips
      Please let me know if the error is resolved..thank you.. :)

    • @rikyhendrawansaputra5781
      @rikyhendrawansaputra5781 4 года назад +1

      @@CodeBand thank you.

    • @CodeBand
      @CodeBand  4 года назад +1

      @@rikyhendrawansaputra5781 Keep learning.. :)

    • @CodeBand
      @CodeBand  4 года назад +1

      @@rikyhendrawansaputra5781 Welcome brother...keep supporting.. :)

  • @atovan3236
    @atovan3236 3 года назад +1

    I use mysql... How to config ?

    • @CodeBand
      @CodeBand  3 года назад +1

      As for MySQL, the config. process is a bit different. Please find the below link which will be useful....
      salitha94.blogspot.com/2019/11/deploy-laravel-application-on-heroku.html

  • @cineflicks8719
    @cineflicks8719 4 года назад +1

    than you so much'

    • @CodeBand
      @CodeBand  4 года назад +1

      Glad it helped😊

    • @cineflicks8719
      @cineflicks8719 4 года назад

      @@CodeBand how to put an ssl certificate sir?

    • @CodeBand
      @CodeBand  4 года назад

      @@cineflicks8719 Heroku does have built in https. You can go to your_app.herokuapp.com
      But, there will be some issues in https page as we need to do a slight configuration in the Laravel side which I have mentioned in the below video :)
      ruclips.net/video/cjy_Dtp9Z4k/видео.html

  • @mohityadav-ob2ps
    @mohityadav-ob2ps Год назад

    When i use create command it says "verify your account by adding payment information" is it not free domain now 🤦🏽🤦🏽

  • @cineflicks8719
    @cineflicks8719 4 года назад +1

    hello sir good day how to fix . pictures upload deleted after several hours in heroku

    • @CodeBand
      @CodeBand  4 года назад +1

      Uploading files wont work in Heroku unless you use some external services like aws s3. Here's a good article on how to integrate aws s3 with Laravel...
      medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce
      Thanks😊

  • @rajsrikantha7914
    @rajsrikantha7914 4 года назад +1

    . Hi I have a problem in hosting in Heroku. The error message comes up as SECRET_KEY not be empty. Error H10 . Can you help me to sort out this problem. Could you please let me know your e-mail. I can sent the error report.
    Thanks

    • @CodeBand
      @CodeBand  4 года назад +1

      Please cross check whether you have provided SECRET_KEY as an env. variable. If so, then make an env. variable in Heroku tooo...In settings, config vars section.

  • @NIRAJKUMAR-iv7pp
    @NIRAJKUMAR-iv7pp 2 года назад +1

    Thankyou

    • @CodeBand
      @CodeBand  2 года назад +1

      You’re welcome 😊

  • @rajsrikantha7914
    @rajsrikantha7914 4 года назад +1

    . Hi Thanks for the message. This is the details in Procfile. web: gunicorn djecommerce.wsgi. And this is the wsgi file path: C:\Users\Raj\Desktop\qbike1\djecommerce

  • @salmanali9259
    @salmanali9259 Год назад

    I am getting this error could you please help me
    » Warning: heroku update available from 7.69.1 to 8.0.2.
    » Error: Missing required flag:
    » -a, --app APP parent app used by review apps
    » See more help with --help

  • @chinavadabhawankumar3138
    @chinavadabhawankumar3138 3 года назад +1

    At last iam getting and error ,unable to push to heroku master its rejecting
    Can you please help me in solving it.
    I have messaged you in instagram too, please respond asap bro.

    • @CodeBand
      @CodeBand  3 года назад +1

      Sorry for the late reply...
      I actually didn't noticed your msg in instagram...
      Anyways, did you managed to fix the issue.. ?

  • @dawnpeace9122
    @dawnpeace9122 4 года назад +1

    hi thanks nice video,
    but I encountered a problem where my routes other than the '/' gives me 404
    But when I tried to add /index.php/routes-path its working
    so do you know how to remove it on heroku
    Thanks alot

    • @CodeBand
      @CodeBand  4 года назад +1

      I'm not pretty much sure why that happens, you can check logs by typing the command...
      heroku logs --tail
      Try googling out your specific problem and I'm sure you will get the solution.
      Keep going👍🏻

  • @ardixq
    @ardixq 2 года назад +1

    cпасибо индусик

    • @CodeBand
      @CodeBand  2 года назад +1

      добре дошли

  • @RelAxGamingKing77
    @RelAxGamingKing77 3 года назад +1

    Thank you so much! Worked perfectly, after days of searching, you Sir helped me really out. You literally are the only one who shows how to do this, thank you so much! I have a question, after run that npm run prod:build command, my frontend doesnt show me any pictures of my assets folder. Are there any solutions Sir? Thanks

    • @CodeBand
      @CodeBand  3 года назад +2

      npm run prod:build
      Things might have changed with this one as Laravel evolved with major updates...
      Check the Docs for more on assets.

  • @boknoyako6098
    @boknoyako6098 4 года назад +1

    in this free ?

    • @CodeBand
      @CodeBand  4 года назад +1

      Yup, its free for lifetime although there are certain limitations like 1000 dyno hours a month and so on. Please see this article : www.heroku.com/pricing

  • @rajsrikantha7914
    @rajsrikantha7914 4 года назад

    .
    Thanks for the message. But I got this message on Error H14
    When I apply "heroku ps:scale web=1"
    Scaling dynos... !
    ! Couldn't find that process type (web).
    env) C:\Users\Raj\Desktop\qbike>heroku ps:scale web=2 worker=4.
    Scaling dynos... !
    ! Couldn't find that process type (web).
    (env) C:\Users\Raj\Desktop\qbike>

    • @CodeBand
      @CodeBand  4 года назад

      Then, the issue is with Procfile, check the spelling of the file and the contents inside.. :)

  • @adeela3530
    @adeela3530 3 года назад +1

    fwrite():ssl:broken pipe error occurred on my send mail laravel application .can you help me

    • @CodeBand
      @CodeBand  3 года назад +2

      laracasts.com/discuss/channels/laravel/fwrite-ssl-broken-pipe-when-trying-to-send-mail

  • @muhammadmughees7551
    @muhammadmughees7551 4 года назад +1

    Forbidden
    You don't have permission to access this resource.

    • @CodeBand
      @CodeBand  4 года назад +1

      Please give an explanation of the error bro...

    • @muhammadmughees7551
      @muhammadmughees7551 4 года назад +1

      Bro I have faced this error when I run my app

    • @CodeBand
      @CodeBand  4 года назад +1

      ​@@muhammadmughees7551 Chances are you misspelled Procfile or the content inside it.
      File name is Procfile (without any extension).
      Content :
      web: vendor/bin/heroku-php-apache2 public

    • @mkgamingentertainment3786
      @mkgamingentertainment3786 4 года назад +1

      Apparently you're using Windows.
      I got the same error as yours, but I fixed it.
      Try running echo web: vendor/bin/heroku-php-apache2 public/ > Procfile in your terminal.
      It worked for me

  • @clentargerototing2792
    @clentargerototing2792 Год назад

    now needs credit card

  • @minhchien6759
    @minhchien6759 4 года назад +1

    bruh calm down and take a breath :3.Pls slowly

    • @CodeBand
      @CodeBand  4 года назад +1

      lol...Will make it slower in future videos😊

  • @RooTHackera
    @RooTHackera 4 года назад +1

    take a breath bro :)

    • @CodeBand
      @CodeBand  4 года назад +1

      Definitely, 😂

  • @muhammadmughees7551
    @muhammadmughees7551 4 года назад +4

    Forbidden
    You don't have permission to access this resource.

    • @CodeBand
      @CodeBand  4 года назад +1

      Please explain bro...

    • @rodrickee
      @rodrickee 3 года назад +1

      same thing here, can't seen to find an answer to this nowhere!

    • @samar4462
      @samar4462 3 года назад +1

      The same problem please help me

    • @eviesujadi16
      @eviesujadi16 3 года назад +1

      @@CodeBand same thing here :(

    • @CodeBand
      @CodeBand  3 года назад +2

      @@rodrickee stackoverflow.com/questions/47619860/laravel-5-4-on-heroku-forbidden-you-dont-have-permission-to-access-on-this-s

  • @htethtetaung8390
    @htethtetaung8390 3 года назад +1

    Forbidden
    You don't have permission to access this resource.

    • @CodeBand
      @CodeBand  3 года назад +1

      See this : stackoverflow.com/questions/47619860/laravel-5-4-on-heroku-forbidden-you-dont-have-permission-to-access-on-this-s

  • @Dharmendrakewat123
    @Dharmendrakewat123 2 года назад +1

    Forbidden
    You don't have permission to access this resource.

    • @CodeBand
      @CodeBand  2 года назад +1

      Check this : stackoverflow.com/questions/47619860/laravel-5-4-on-heroku-forbidden-you-dont-have-permission-to-access-on-this-s