- Download the install script (right click + save as...)
- Execute the script as an administrator
- Right-click > Run as an administrator
- Make sure to fill in the LIBRO_API_TOKEN & RESTAURANT_CODE when prompted
- That’s it!
If the installation worked correctly, you will find c:\libro-sync-agent\working & c:\libro-sync-agent\tmp directories and a log file will be created under c:\libro-sync-agent\tmp\service-log.txt.
-
If c:\libro-sync-agent\vendor dir is empty
- Download Git (for Windows 32 bit) (for Windows 64 bit) and place it in the vendor dir
- If you're not sure which one to get, download both
- Re-execute the install script as an administrator
-
If not, execute c:\libro-sync-agent\INSTALL as an administrator.
If these directories and files are still missing, follow the Troubleshooting section.
- Installs Ruby, RubyGems and third party dependencies (gems) required by the agent
- Installs Git, used to upgrade the agent
- Generates a
c:\libro-sync-agent\CONFIGURATION
file - Installs the latest release of the agent
- Configures the Windows service running the agent
- Starts the Windows service
After the initial install, you will need to edit the CONFIGURATION manually and restart the Windows service if you need to update one of the parameters; UPGRADE or INSTALL scripts will restart the Windows service.
Here is a list of supported parameters:
value | required? | default |
---|---|---|
LIBRO_API_TOKEN | yes | |
RESTAURANT_CODE | yes | |
WORKING_DIR | no | c:\libro-sync-agent\working |
API_ENDPOINT | no | https://api.libroreserve.com/inbound/maitre_d/status |
STRIP_INVOICE_DATA | no | 0 |
If the Restock agent is running on the server (the Restock logo will appear on the system tray), do not modify the existing POS configuration. On the Restock agent, you will need to activate the recopy service and set the directory location to c:\libro-sync-agent\working
as seen in the screenshot below.
The log activity from the POS should therefore still be deposited to the Restock working directory to be then copied by the Restock agent to our working repository.
The INSTALL script takes care of upgrading the agent to the latest release and upgrading the Windows service. In theory, you shouldn't need to use the UNINSTALL & UPGRADE scripts but if something fishy happens try:
- Executing the UNINSTALL script
- Rebooting the machine
- Executing the UPGRADE script
- Executing the INSTALL script
If you’re still having issues, report in a critical issue and e-mail us the log file under c:\libro-sync-agent\tmp
at admin@libroreserve.com.