P
P
Pavel2016-01-09 12:57:07
PHP
Pavel, 2016-01-09 12:57:07

How to setup php server with gulp livereload?

I did not find an answer to the question even on foreign sites. The essence of the problem:
there is a folder that contains index.php , sass files and other less important project files. It is necessary that when changing sass or php files, livereload works in the browser.
Here is a tutorial in which almost everything is told on the fingers phpocean.com/tutorials/front-end/automate-your-wor...
but there is one point that I did not understand:
Remember, before you run any php instruction, you need a php server . So, through this error gulp is trying to tell us that there is no php server found.
Let's say I have openserver , how can I make friends with this gallp task with my server? If I understand correctly gulp looks at localhost:8080 in the example from the tutorial, should the server already be running at this address? What then does:

proxy:'127.0.0.1',
        port:8080

I've been struggling with this php livereload for 2 days now, help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-01-14
@alex_p95

m.vk.com/away.php?to=https%3A%2F%2Fwebref.ru%2Fdev...
At the bottom, attention is paid to how to make friends between galp and php;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question