e2core icon indicating copy to clipboard operation
e2core copied to clipboard

Feature request: --port flag

Open calebschoepp opened this issue 4 years ago • 8 comments

It would be handy if the port could be defined via flag in addition to the ATMO_HTTP_PORT env variable.

When I was deploying an application I wrote with Atmo to Heroku I had a lot of trouble with this. Heroku expects you to use an arbitrary port found in the env variable PORT. What I wanted to do was something like atmo --port $PORT. In the end I had to write a little bash script that exported the PORT variable to ATMO_HTTP_PORT.

calebschoepp avatar May 06 '21 06:05 calebschoepp

@calebschoepp Agreed, would you like to take this on?

I'd say this can be generalized to read 'any env var options should also be available as flags'

cohix avatar May 06 '21 12:05 cohix

@cohix Yep, I'll take this on.

calebschoepp avatar May 06 '21 16:05 calebschoepp

@cohix quick update. This is still sitting on my todo list but I'm finding myself increasingly busy. Please feel free to pick up this task if you want it quicker than I can do it. I only ask that you assign yourself to the task so that I don't duplicate work if you do pick it up. Thanks :smile:

calebschoepp avatar May 25 '21 05:05 calebschoepp

@calebschoepp sounds good!

cohix avatar May 25 '21 20:05 cohix

@cohix can I take this on?

denopink avatar Jan 11 '22 13:01 denopink

@denopink yes by all means!

cohix avatar Jan 11 '22 13:01 cohix

@cohix while I'm on this ticket, do you want me to take care of the other env vars as well? It probably wont be long till we get a similar request for those!

https://github.com/suborbital/vektor/blob/6ac9d58ceaa6c3392031436094b74253fd34d8ad/vk/options.go#L13-L18

denopink avatar Jan 19 '22 00:01 denopink

@denopink yes I think that makes sense!

cohix avatar Jan 19 '22 01:01 cohix