When I am in development mode, I frequently make changes to several source files. Currently, in order to reinitialize my PEngines instance, I exit the SWI-Prolog console completely and restart SWI-Prolog. This is the easiest way for me to reset my environment, because I have predicates in my swipl.ini file that need to be executed to set up and run the PEngines server. Now that I am about to duplicate my local PEngines instance onto my server box, I’d like to streamline that process to make my life easier.
Is there a way to do this from within SWI-Prolog? Something that would duplicate the behavior of running SWI-Prolog from scratch so that it would clear out nearly everything and then re-execute the initialization file? That would save me a lot of trouble when compare to the process of completely exiting and restarting SWI-Prolog each time.
If not, how are those of you with live PEngines instances in the cloud restarting your instances when you want a fresh start after changing a slew of source files?