3 ms·
You could, but it would be stupid to do so if it wasn't a trivial app, since nobody wants to support something like that, even if it's lifetime is measured in m
by kbenson 7y ago
You could, but it would be stupid to do so if it wasn't a trivial app, since nobody wants to support something like that, even if it's lifetime is measured in minutes or hours. It's a one-liner, just a pointless one.
That said, if rails has a super simple default startup that could serve a file, then it might be useful to start that as a one liner in select circumstances.
- vinceguidry 7y agoRails has generators for that. Invaluable for greenfielding projects in an iterative manner. Blow everything away and recreate with a single command. https://guides.rubyonrails.org/generators.html https://guides.rubyonrails.org/generators.html
- vcavallo 7y agonobody wants to support weird looking one-liners either