X
X
Xtone2020-07-04 10:18:15
PHP
Xtone, 2020-07-04 10:18:15

Why is the project not deployed?

I have a PHP project. It works on the server, I copied the entire folder with it to myself locally. I launch it under a vagrant and then some inexplicable crap begins. The project seems to have risen - it renders the markup and the site is partially displayed, but it seems that some of the files (styles, scripts or images) are missing. That is, it is displayed clumsily and not completely. But how can this be if it works on the server, and I copied the folder completely from there, I really don’t understand ...

PS In the console, it also swears at missing files. But after all, he copied everything that was. How can this be? Even more than that - I found these files lying in a folder locally.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2020-07-04
@Xtone

Information is not enough, it can be anything. You need to watch how your styles are connected. Maybe they don't publish like that. Or the file is missing. See browser console. For example, Yii2 has a style cache in the assets folder. Even if you delete the source, then it will be in assets and everything will work. But if you run it on a new one, where this folder does not exist, the pages will be crooked.
Perhaps you do not have access rights to this folder where styles. Or somewhere the path is not correct.

I
Ivan Shumov, 2020-07-04
@inoise

Let me guess - fpx assets?) are missing, but was set globally?)

M
monday_suicide, 2020-07-04
@dcc

Possibly a vagrant problem. Open the config, and check all the rights there. If you change something in the config, don't forget vagrant reload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question