Local HubL server
Before following these instructions, please ensure that you have the Java 8 (or later) developers kit installed. Follow these steps to set up the Local HubL Server:
1. Download the packageDownload the latest version of the package.
2. Unzip the packageUnzip the file. This will create a local-hubl-server directory. You can move this folder to a directory of your choosing.
3. Change directory
Open Terminal or Command Prompt and change directory to local-hubl-server. In Terminal the command is:
Please note that the path to the file will vary based on where you unzip and move the directory. Alternatively, you can navigate to the server folder via Finder or Windows Explorer.
4. Run the server
In Terminal or Command Prompt run the following command:
If you do not have the Java 8 Developers Kit installed, you will be prompted to download and install it. If successful the browser will open to 127.0.0.1:8080.
As an alternative, if you accessed the local-hubl-server directory via Finder or Windows Explorer, run the local-hubl-server executable in the 'bin' directory.
5. Explore the default template content
While running the server, the IP address 127.0.0.1:8080 will show you a list of templates that have been created in your working directory. The default distribution comes with a codified hubtheme to play with.
You can see that the 'conf/config.yaml' is set up to point at 'work/hubthemes/vast as a baseDir', which is where everything all of the default tempates live. If you wish to change the baseDir, you will need to edit the config.yaml file.
You may notice that the folder structure of the work/hubthemes/vast directory resembles the folder structure of Design Manager. When you create new HTML files, in your working directory, you will see them automatically added to the list of links available at 127.0.0.1:8080.
Local HubL Server + FTP
You can use the HubL Local Server with an FTP client to sync both the local and remote 'custom' directories. To learn more, check out this article.
Learn more about local development on HubSpot CMS
There is a good forum thread on this topic 👉 "Can you set up local development on HubSpot CMS?"
You can also ask questions to the community in the CMS Developer Slack.