Skip to content

serve site on a different port #275

Closed Answered by nobkd
setop asked this question in Q&A
May 7, 2024 · 1 comments · 4 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 4 replies

Comment options

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

@nobkd
Comment options

Answer selected by setop
@tipiirai
Comment options

@nobkd
Comment options

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