hugo-theme-cleanwhite
hugo-theme-cleanwhite copied to clipboard
I have to run `npm run algolia` at every new post or edit?
Hello and thanks for this great theme, I'm setting up it.
But I have one question about the algolia searche, like the tile says: I have to re-run the npm run algolia
when I update the website?
If yes, there's a way to keep it always running, and is it correct? I mean like create a .service file like this (sorry I'm not familiar with npm):
[Unit]
Description=Run algolia
After=network.target
[Service]
WorkingDirectory=/my-site/
ExecStart=/usr/bin/npm run algolia
Restart=always
User=root
Environment=ALGOLIA_INDEX_NAME=my-index
[Install]
WantedBy=multi-user.target
thanks!