S
S
sawa42016-12-03 21:06:03
Laravel
sawa4, 2016-12-03 21:06:03

How to correctly deploy Laravel on Ubuntu (The character encoding of the HTML document was not declared)?

Hello linuxoids!
Tell me what I'm doing wrong

git init
git remote add origin ssh://some address
git pull origin master

after downloading , composer install
but the site does not open locally
. The following appeared in the console:
GET 
http://sшеу.loc/public/ [HTTP/1.0 500 Internal Server Error 67ms]
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

Also, post methods in Laravel do not work during installation.
git clone https://github.com/laravel/quickstart-basic quickstart
cd quickstart
composer install
php artisan migrate

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
A person from Kazakhstan, 2016-12-03
@LenovoId

at the very top it says that you did not declare the encoding for html characters (The character encoding of the HTML document was not declared)

E
Egor Zhivagin, 2017-03-31
@Krasnodar_etc

Ahh, this is some kind of game) I have the same problem, and if after the error I save the file a few more times, then in some moment everything becomes normal.
The solution might be gulp-concat .
The error pisses me off wildly, of course...

D
Dmitry Belyaev, 2017-03-31
@bingo347

scss does not adequately accept single quotes, I think that's the point,
it would be nice to see a code fragment that causes an error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question