cnlohr / esp82xx

Useful ESP8266 C Environment
Other
289 stars 107 forks source link

Cannot make any changes in website #42

Closed archont94 closed 8 years ago

archont94 commented 8 years ago

Hi, Finally I was able to compile esp-open-sdk, esp82XX-basic and burn .bin to my ESP board. I try to change user.cfg file (PAGE_TITLE = esp82xx-basic to PAGE_TITLE = esp82xx-basic-mod), then make purge, make all and make burn. All process was succesfull, but even when I refresh site on browser I cannot see any changes in page title. What I'm doing wrong?

con-f-use commented 8 years ago

Judging from the other issue you filed and the fact, that you are on cygwin (Windows), I'd say either grep or sed are not working properly. PAGE_TITLE is substituted into ./web/tmp/index.html from ./web/page/index.html by sed before the binary page.mpf is build and flashed to the esp8266. That happens in ./web/Makefile in these lines:

$(foreach p, $(filter PAGE_%,$(.VARIABLES)) $(filter PROJECT_%,$(.VARIABLES)) VERSSTR, \
    sed -i "s/{{$(p)}}/$$(echo -n '$($(p))' | sed -e 's/[\/&"]/\\&/g')/" tmp/index.html && \
) true

I cannot reproduce your issue on my Ubuntu.

archont94 commented 8 years ago

@con-f-use no, to build SDK I had to manually install packages (AFAIK Cygwin don't have package manager like apt-get). To do that I cloned SDK using git clone --recursive https://github.com/pfalcon/esp-open-sdk.git then make STANDALONE=n. I check in home if sed is working properly.

EDIT It seems like computer reboot solve problem. Just Windows things...