Hi,
This problem has been recurring for a while, and I'm not sure of the cause.
Using the following very basic code to start a server,
, the index file at ..\objects\www gets loaded appropriately, the first time.
So if we start using the port 12612 that's commented above, the index file is displayed.
But if we Kill the server process inside B4J, and then regenerate the index.html file with changes and restart the server, the changes aren't reflected on the screen.
In fact, even if we kill the server and DON'T restart it, the original index.html file is displayed. I've tried clearing the Chrome cache, but to no avail. Chrome apparently thinks the server is still running , and maybe Chrome is right.
If we change the port from 12612 to 8888, then the changes DO reflect. But if we make changes after running 8888 the first time, they don't show up after refreshing, or after restarting the server.
What am I missing? Is there some other way to stop the server during development, other than Kill Process?
This problem has been recurring for a while, and I'm not sure of the cause.
Using the following very basic code to start a server,
B4X:
Log( "Start" )
srver.Initialize( "srvr" )
' srver.Port = 12612
srver.Port = 8888
srver.Start
StartMessageLoop
Log( "End" )
, the index file at ..\objects\www gets loaded appropriately, the first time.
So if we start using the port 12612 that's commented above, the index file is displayed.
But if we Kill the server process inside B4J, and then regenerate the index.html file with changes and restart the server, the changes aren't reflected on the screen.
In fact, even if we kill the server and DON'T restart it, the original index.html file is displayed. I've tried clearing the Chrome cache, but to no avail. Chrome apparently thinks the server is still running , and maybe Chrome is right.
If we change the port from 12612 to 8888, then the changes DO reflect. But if we make changes after running 8888 the first time, they don't show up after refreshing, or after restarting the server.
What am I missing? Is there some other way to stop the server during development, other than Kill Process?
Last edited: