skip to Main Content

I build API project using Laravel 8, and I put my project on Git. My production server using Ubuntu Apache. I use only 1 database, and it’s use on my local and production server.

I have weird problem since yesterday and make me confused. So, I push the latest commit to my Server from Local Server. Everything went well. But when I try to run my API via Postman, the results from my Local and Production server are different.

I checked manually in the files I pushed from local, everything is exactly same.

I try git status, everything OK. git pull are up to date. Here i attach the screenshoot.
enter image description here

Since i use laravel, i try to clear cache with php artisan cache:clear and it doesn’t work.

Here i attach my Postman result:

enter image description here

As you can see, the result are different. I believe, there is no error with my code, It’s work well on my Local server.

I try to contact my server provider, but didn’t get any solution.

Anyway, this is Header from Prod Server
Header response Prod Server

I’ll appreciate all the answer from this thread. Thank you

2

Answers


  1. Chosen as BEST ANSWER

    Thank you for the answer and comment.

    I already solve this problem. The problem pure from my production file and server.

    first i try to restart my docker, and then run php artisan config:clear.


  2. Are you working on same branch in local and server? check your git branches in both.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search