Replies: 3 comments 5 replies
-
Can you elaborate ? I'm confused what this is about. |
Beta Was this translation helpful? Give feedback.
-
thanks for asking ... So these are the possible args... go run . serve -h
NAME:
vince serve - Starts vince web server
USAGE:
vince serve [command [command options]]
OPTIONS:
--listen value host:port to dind the servser (default: ":8080") [$VINCE_LISTEN]
--data value directory to store data (default: "vince-data") [$VINCE_DATA]
--autoTLS enables automatic tls (default: false) [$VINCE_AUTO_TLS]
--acmeEmail value email address for atomatic tls [$VINCE_ACME_EMAIL]
--acmeDomain value domain for atomatic tls [$VINCE_ACME_DOMAIN]
--url value url resolving to this vince instance (default: "http://localhost:8080") [$VINCE_URL]
--demo value Website to use as a demo (default: "vinceanalytics.com") [$VINCE_DEMO_URL]
--domains value [ --domains value ] list of domains to create on startup [$VINCE_DOMAINS]
--profile registrer http profiles on /debug/ path (default: false) [$VINCE_PROFILE]
--adminName value administrator name [$VINCE_ADMIN_NAME]
--adminPassword value administrator password [$VINCE_ADMIN_PASSWORD]
--help, -h show help (default: false) This is what it does right now if you just start it. apple@apples-MacBook-Pro vince % go run . serve
2024/12/04 13:05:50 [JOB 1] WAL 000067 stopped reading at offset: (vince-data/ops/000067.log: 0); replayed 0 keys in 0 batches
2024/12/04 13:05:50 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
2024/12/04 13:05:50 INFO loading translation data
2024/12/04 13:05:50 INFO complete loading translation elapsed=36.083µs keys=0
2024/12/04 13:05:50 INFO starting event processing loop
2024/12/04 13:05:50 INFO starting server addr=:8080
It's not telling me what values it is using. It would be useful if always printed each one when it starts up. It does not have to tell you if its from the flags or .env or something else because thats overkill. what do you think ? It's an easy change but just makes it easy to know where .env values re being applied. Also good for when deployed with docker and k8, etc |
Beta Was this translation helpful? Give feedback.
-
I am adding .vscode debugging. both with cli args and .env file. Makes it easy to work on the code with you. Can PR it if you want. It does not touch the code.. |
Beta Was this translation helpful? Give feedback.
-
"go run . serve" could emit the config values that it is using to the console when it starts up.
I was just going though making a .vscode folder with a launch.json and a .env to make it easy to debug things, and found it easier to manage whats being used if the "serve" command also printed the values it is using.
Beta Was this translation helpful? Give feedback.
All reactions