Created
July 24, 2020 15:24
-
-
Save zourite/4ea9e02b3e02a69cab294e5c6cc5a790 to your computer and use it in GitHub Desktop.
Deploy external server for hugo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
VAR=$(/sbin/ip -o -4 addr list eno1 | awk '{print $4}' | cut -d/ -f1) | |
hugo server --bind 0.0.0.0 --baseURL http://$VAR:1313 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment