![]() ![]() Live Reload is new in 7.10+ and depends on WebSockets functionality and the. Web Connection's IIS install script automatically installs the WebSocket feature, so this affects only older installations or explicit manual installations. Make sure the WebSockets Feature is installed from IIS Features.IIS requires that WebSockets functionality is installed: ![]() For REST services where you don't manage the HTML interface or use another tool like a CLI that includes it's own local Web Server, you only want to use the server Live reload. This lets you make changes to PRG files and automatically restart the server with the changes applied.įor HTML based application you typically use both in unison. This reloads the Web Connection server application after a server code change. ![]() The Web Server interface uses WebSockets to communicate with the open Web page to tell it to refresh after changes to these client centric files. This reloads the Web Page when HTML, CSS, JS and Web Connection scripts/templates on the client side have changed. There are two parts to Live Reload in Web Connection: In order to effectively make iterative changes that let you keep the editor open while running your code, use an external editor like Visual Studio Code or similar. The FoxPro editor locks the active file, and won't allow reading of the file while open in FoxPro. Note that in order to make code changes to PRG files and have those changes recompile immediately, you need to use an editor other than the FoxPro editor. You may still want to use the FoxPro editor for larger code changes as it has better code completion support, but for quick fixes an external editor is recommended (more on why below). Preferably you'll want to use an editor that can handle both HTML, CSS and JavaScript and also your FoxPro code files for quick fixes. To take full advantage of Live Reload, you'll want to use a decent editor in combination with it. It's a very powerful feature, that can improve productivity drastically. It's like WYSIWYG on steroids, excepts it's actually running your real live application. This allows you to display your editor and your browser side by side, and as soon as you make a change you see the live updates in the application, almost in real time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |