W
W
WD_KMS2020-02-17 22:54:09
symfony
WD_KMS, 2020-02-17 22:54:09

How to deploy production locally for development?

There is a working project on Symfony5. If we deploy locally to OpenServer with the root folder specified as \public, we get an error

Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "...\domains\.../.env" environment file.


How to correctly transfer and configure the entire structure to the local machine? Or is it necessary to initially install the current version on the production server and roll changes onto it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-02-17
@WD_KMS

You have an error that the file is missing.env

How to correctly transfer and configure the entire structure to the local machine? Or is it necessary to initially install the current version on the production server and roll changes onto it?

Set up the environment in the same way as on the server. For better portability, you can read about Docker or Vargant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question