github.com/jbramsden/hugo@v0.47.1/docs/content/en/commands/hugo_server.md (about)

     1  ---
     2  date: 2018-08-17
     3  title: "hugo server"
     4  slug: hugo_server
     5  url: /commands/hugo_server/
     6  ---
     7  ## hugo server
     8  
     9  A high performance webserver
    10  
    11  ### Synopsis
    12  
    13  Hugo provides its own webserver which builds and serves the site.
    14  While hugo server is high performance, it is a webserver with limited options.
    15  Many run it in production, but the standard behavior is for people to use it
    16  in development and use a more full featured server such as Nginx or Caddy.
    17  
    18  'hugo server' will avoid writing the rendered and served content to disk,
    19  preferring to store it in memory.
    20  
    21  By default hugo will also watch your files for any changes you make and
    22  automatically rebuild the site. It will then live reload any open browser pages
    23  and push the latest content to them. As most Hugo sites are built in a fraction
    24  of a second, you will be able to save and see your changes nearly instantly.
    25  
    26  ```
    27  hugo server [flags]
    28  ```
    29  
    30  ### Options
    31  
    32  ```
    33        --appendPort              append port to baseURL (default true)
    34    -b, --baseURL string          hostname (and path) to the root, e.g. http://spf13.com/
    35        --bind string             interface to which the server will bind (default "127.0.0.1")
    36    -D, --buildDrafts             include content marked as draft
    37    -E, --buildExpired            include expired content
    38    -F, --buildFuture             include content with publishdate in the future
    39        --cacheDir string         filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
    40        --canonifyURLs            (deprecated) if true, all relative URLs will be canonicalized using baseURL
    41        --cleanDestinationDir     remove files from destination not found in static directories
    42    -c, --contentDir string       filesystem path to content directory
    43    -d, --destination string      filesystem path to write files to
    44        --disableFastRender       enables full re-renders on changes
    45        --disableKinds strings    disable different kind of pages (home, RSS etc.)
    46        --disableLiveReload       watch without enabling live browser reload on rebuild
    47        --enableGitInfo           add Git revision, date and author info to the pages
    48        --forceSyncStatic         copy all files when static is changed.
    49        --gc                      enable to run some cleanup tasks (remove unused cache files) after the build
    50    -h, --help                    help for server
    51        --i18n-warnings           print missing translations
    52        --ignoreCache             ignores the cache directory
    53    -l, --layoutDir string        filesystem path to layout directory
    54        --liveReloadPort int      port for live reloading (i.e. 443 in HTTPS proxy situations) (default -1)
    55        --meminterval string      interval to poll memory usage (requires --memstats), valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". (default "100ms")
    56        --memstats string         log memory usage to this file
    57        --navigateToChanged       navigate to changed content file on live browser reload
    58        --noChmod                 don't sync permission mode of files
    59        --noHTTPCache             prevent HTTP caching
    60        --noTimes                 don't sync modification time of files
    61        --pluralizeListTitles     (deprecated) pluralize titles in lists using inflect (default true)
    62    -p, --port int                port on which the server will listen (default 1313)
    63        --preserveTaxonomyNames   (deprecated) preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")
    64        --renderToDisk            render to Destination path (default is render to memory & serve from there)
    65    -s, --source string           filesystem path to read files relative from
    66        --stepAnalysis            display memory and timing of different steps of the program
    67        --templateMetrics         display metrics about template executions
    68        --templateMetricsHints    calculate some improvement hints when combined with --templateMetrics
    69    -t, --theme string            theme to use (located in /themes/THEMENAME/)
    70        --themesDir string        filesystem path to themes directory
    71        --uglyURLs                (deprecated) if true, use /filename.html instead of /filename/
    72    -w, --watch                   watch filesystem for changes and recreate as needed (default true)
    73  ```
    74  
    75  ### Options inherited from parent commands
    76  
    77  ```
    78        --config string    config file (default is path/config.yaml|json|toml)
    79        --debug            debug output
    80        --log              enable Logging
    81        --logFile string   log File path (if set, logging enabled automatically)
    82        --quiet            build in quiet mode
    83    -v, --verbose          verbose output
    84        --verboseLog       verbose logging
    85  ```
    86  
    87  ### SEE ALSO
    88  
    89  * [hugo](/commands/hugo/)	 - hugo builds your site
    90  
    91  ###### Auto generated by spf13/cobra on 17-Aug-2018