Skip to content

serve site on a different port #275

Answered by nobkd
setop asked this question in Q&A
May 7, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

There is no command line option for the port, but you can create another environment file that overrides values in site.yaml or defaults with its own. This can be useful, if you want to change more than just one value for your setup in dev VS prod.

See nue --help or https://nuejs.org/docs/reference/command-line-interface.html or:

Options
-r or --root Source directory. Default "." (current working dir)
-p or --production Build production version / Show production stats
-e or --environment Read extra options to override defaults in site.yaml
-s or --stats Show site statistics after current command

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@setop
Comment options

@nobkd
Comment options

Answer selected by setop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants