-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing a new package? #159
Comments
That’s for the command line setup of the admin user. So, it reading from
environment variables isn’t a great fit?
There are of course other ways like the admin config page to set the SMTP
etc.
…On Fri, 10 Nov 2023 at 3:33 AM, suntong ***@***.***> wrote:
I want to add a new method to replace the following series of fmt.Scanf
with reading from .env instead:
https://github.com/s-gv/orangeforum/blob/5cf2e188f22b44db64f0f4d2722ea5c43e65151b/management.go#L208-L226
OK?
The auto-reading from .env would be provided by
github.com/joho/godotenv/autoload, to load .env file automatically.
—
Reply to this email directly, view it on GitHub
<#159>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKFV5JXV63SI2SGHY23PKTYDVHJ3AVCNFSM6AAAAAA7FIE3AWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DMNBXGIYDONA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hmm... I'm not replacing the current approach, but to add an option so that people can choose. I've pushed my change so that you can take a peek -- It's fine we don't introduce a new package, I'll just define everything as environment variables for myself. Just we'll loose self-documented one-stop location for my next PR: And the .env file will be convenient for configuring & launching the server too, as shown in the top |
I want to add a new method to replace the following series of
fmt.Scanf
with reading from.env
instead:orangeforum/management.go
Lines 208 to 226 in 5cf2e18
OK?
The auto-reading from
.env
would be provided bygithub.com/joho/godotenv/autoload
, to load .env file automatically.The text was updated successfully, but these errors were encountered: