DEV Community

mostafalaravel
mostafalaravel

Posted on

1

How to clone the same environment I have on the local machine to the deployment environment?

Hello ,

Let me first talk about my local env :

I work on a Laravel project using the vagrant: (PostgreSQL 12.4 + PHP 7.4.10 )

The problem is I discovered that some results are not not the same between my local and the prod env especially when about the eloquent requests (results are not the same some times)

so, my question as the title said, how to clone my local env to the prod server ?

thanks

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay