- Unable to start livereload serve update#
- Unable to start livereload serve full#
- Unable to start livereload serve code#
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.
Unable to start livereload serve full#
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. Fixing a FoxPro Code Error (server restarts, fixed page reloads).FoxPro Server Code Change (server restarts, page reloads).Web Connection Script page changes (page just reloads).Here's what Live Reload looks like in action: Web Server Live Reload makes sense only for HTML based interfaces that are not controlled by an external framework and tooling (ie. Note also that the Web Server based live reload is not useful for REST Services - only the Web Connection Server code re-compile is useful in that scenario. For more info on enabling and disabling see below. Live Reload is a development time feature and should be disabled on a live server both for the Web Server (IIS or WC Web Server) and the Web Connection Server.
Unable to start livereload serve update#
Browsers maintain their scroll position on refreshes by default so you easily see pages update as you type and save (ctrl-s). The automatic refresh is the same behavior as manually pressing the refresh button in the browser, except it happens automatically. Live Reload then automatically refreshes the browser after a changed file is saved to disk. FoxPro Code in your Web Connection Server.Live Reload is a new feature in Web Connection that can detect when you make changes to any of these types of files: